diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr77929.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr77929.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77929.c b/gcc/testsuite/gcc.c-torture/compile/pr77929.c new file mode 100644 index 00000000000..bbcb04bd4f4 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr77929.c @@ -0,0 +1,13 @@ +/* PR tree-optimization/77929 */ + +void bar (void); + +void +foo (int x, unsigned short int y) +{ + int a = 0; + int b = (y != 0) ? (x < y) : (a < 0); + + if (x >= 0 & b) + bar (); +} |