OSDN Git Service

New test.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 May 1998 21:41:24 +0000 (21:41 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 May 1998 21:41:24 +0000 (21:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19551 138bc75d-0d04-0410-961f-82ee72b054a4

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; }