diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20000717-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000717-1.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000717-1.c b/gcc/testsuite/gcc.c-torture/execute/20000717-1.c new file mode 100644 index 000000000..039ae5f34 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000717-1.c @@ -0,0 +1,22 @@ +typedef struct trio { int a, b, c; } trio; + +int +bar (int i, trio t) +{ + if (t.a == t.b || t.a == t.c) + abort (); +} + +int +foo (trio t, int i) +{ + return bar (i, t); +} + +main () +{ + trio t = { 1, 2, 3 }; + + foo (t, 4); + exit (0); +} |