New test.
authorJeff Law <law@gcc.gnu.org>
Tue, 5 May 1998 21:41:24 +0000 (15:41 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 5 May 1998 21:41:24 +0000 (15:41 -0600)
From-SVN: r19551

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

diff --git a/gcc/testsuite/gcc.c-torture/execute/980505-1.c b/gcc/testsuite/gcc.c-torture/execute/980505-1.c
new file mode 100644 (file)
index 0000000..9052411
--- /dev/null
@@ -0,0 +1,11 @@
+static int f(int) __attribute__((const));
+int main()
+{
+   int f1, f2, x;
+   x = 1; f1 = f(x);
+   x = 2; f2 = f(x);
+   if (f1 != 1 || f2 != 2)
+     abort ();
+   exit (0);
+}
+static int f(int x) { return x; }