projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b1989
)
New test.
author
Jeff Law
<law@gcc.gnu.org>
Tue, 5 May 1998 21:41:24 +0000
(15:41 -0600)
committer
Jeff 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]
patch
|
blob
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
+++ b/
gcc/testsuite/gcc.c-torture/execute/980505-1.c
@@ -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; }