diff options
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr68376-1.c')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/execute/pr68376-1.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr68376-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr68376-1.c new file mode 100644 index 00000000..cb526576 --- /dev/null +++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr68376-1.c @@ -0,0 +1,24 @@ +/* PR rtl-optimization/68376 */ + +int a, b, c = 1; +signed char d; + +int +main () +{ + for (; a < 1; a++) + for (; b < 1; b++) + { + signed char e = ~d; + if (d < 1) + e = d; + d = e; + if (!c) + __builtin_abort (); + } + + if (d != 0) + __builtin_abort (); + + return 0; +} |