projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b879bc
)
New test (alias problems).
author
Jeff Law
<law@gcc.gnu.org>
Wed, 6 May 1998 18:18:03 +0000
(12:18 -0600)
committer
Jeff Law
<law@gcc.gnu.org>
Wed, 6 May 1998 18:18:03 +0000
(12:18 -0600)
From-SVN: r19594
gcc/testsuite/gcc.c-torture/execute/980506-2.c
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/gcc.c-torture/execute/980506-2.c
b/gcc/testsuite/gcc.c-torture/execute/980506-2.c
new file mode 100644
(file)
index 0000000..
4dd9a2c
--- /dev/null
+++ b/
gcc/testsuite/gcc.c-torture/execute/980506-2.c
@@ -0,0
+1,22
@@
+static void *self(void *p){ return p; }
+
+int
+f()
+{
+ struct { int i; } s, *sp;
+ int *ip = &s.i;
+
+ s.i = 1;
+ sp = self(&s);
+
+ *ip = 0;
+ return sp->i+1;
+}
+
+main()
+{
+ if (f () != 1)
+ abort ();
+ else
+ exit (0);
+}