* gcc.c-torture/execute/20010711-1.c: New test.
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 11 Jul 2001 09:38:11 +0000 (09:38 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 11 Jul 2001 09:38:11 +0000 (09:38 +0000)
From-SVN: r43932

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20010711-1.c [new file with mode: 0644]

index 5dfb7eaa2972563683ed42c4ea55869918dcd1cd..aa516e210f5bd7eb5efa390c1bf23fd87fc4c5c2 100644 (file)
@@ -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 (file)
index 0000000..12971a5
--- /dev/null
@@ -0,0 +1,13 @@
+void foo (int *a) {}
+
+int main ()
+{
+  int a;
+  if (&a == 0)
+    abort ();
+  else
+    {
+      foo (&a);
+      exit (0);
+    }
+}