diff options
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20020716-1.c')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/execute/20020716-1.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20020716-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/20020716-1.c new file mode 100644 index 00000000..7f559590 --- /dev/null +++ b/SingleSource/Regression/C/gcc-c-torture/execute/20020716-1.c @@ -0,0 +1,36 @@ +extern void abort (void); +extern void exit (int); + +int sub1 (int val) +{ + return val; +} + +int testcond (int val) +{ + int flag1; + + { + int t1 = val; + { + int t2 = t1; + { + flag1 = sub1 (t2) ==0; + goto lab1; + }; + } + lab1: ; + } + + if (flag1 != 0) + return 0x4d0000; + else + return 0; +} + +int main (void) +{ + if (testcond (1)) + abort (); + exit (0); +} |