aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2001-07-11 09:38:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2001-07-11 09:38:11 +0000
commit4a1b6176b867d97515f9b09ce5ec4ab63e664520 (patch)
treeb78e996041a4edd6970ee5dfee676bb6da5fe34f /gcc
parentb5265b32766f94e5170516885439901cbc53f73f (diff)
downloadgcc-4a1b6176b867d97515f9b09ce5ec4ab63e664520.zip
gcc-4a1b6176b867d97515f9b09ce5ec4ab63e664520.tar.gz
gcc-4a1b6176b867d97515f9b09ce5ec4ab63e664520.tar.bz2
* gcc.c-torture/execute/20010711-1.c: New test.
From-SVN: r43932
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20010711-1.c13
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5dfb7ea..aa516e2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-11 Richard Sandiford <rsandifo@redhat.com>
+
+ * gcc.c-torture/execute/20010711-1.c: New test.
+
2001-07-11 Ben Elliston <bje@redhat.com>
* g++.old-deja/g++.other/enum5.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20010711-1.c b/gcc/testsuite/gcc.c-torture/execute/20010711-1.c
new file mode 100644
index 0000000..12971a5
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20010711-1.c
@@ -0,0 +1,13 @@
+void foo (int *a) {}
+
+int main ()
+{
+ int a;
+ if (&a == 0)
+ abort ();
+ else
+ {
+ foo (&a);
+ exit (0);
+ }
+}