diff options
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/loop-9.c')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/execute/loop-9.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/loop-9.c b/SingleSource/Regression/C/gcc-c-torture/execute/loop-9.c new file mode 100644 index 00000000..52305759 --- /dev/null +++ b/SingleSource/Regression/C/gcc-c-torture/execute/loop-9.c @@ -0,0 +1,21 @@ +/* Source: Neil Booth, from PR # 115. */ + +int false() +{ + return 0; +} + +extern void abort (void); + +int main (int argc,char *argv[]) +{ + int count = 0; + + while (false() || count < -123) + ++count; + + if (count) + abort (); + + return 0; +} |