* gcc.c-torture/execute/990106-1.c: New test.
authorJeffrey A Law <law@cygnus.com>
Wed, 6 Jan 1999 01:25:09 +0000 (01:25 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 6 Jan 1999 01:25:09 +0000 (18:25 -0700)
From-SVN: r24504

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

index 820c7906f201ecde7f69a64088f86baae7a88e9a..3499c89f2ff6f9f814fb36d2289003a8cd949768 100644 (file)
@@ -1,3 +1,7 @@
+Wed Jan  6 02:21:59 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * gcc.c-torture/execute/990106-1.c: New test.
+
 Wed Dec 30 23:05:28 1998  Zack Weinberg <zack@rabi.columbia.edu>
 
        * gcc.c-torture/compile/981223-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/990106-1.c b/gcc/testsuite/gcc.c-torture/execute/990106-1.c
new file mode 100644 (file)
index 0000000..6631bfd
--- /dev/null
@@ -0,0 +1,16 @@
+foo(bufp)
+char *bufp;
+{
+    int x = 80;
+    return (*bufp++ = x ? 'a' : 'b');
+}
+
+main()
+{
+  char x;
+
+  if (foo (&x) != 'a')
+    abort ();
+
+  exit (0);
+}