diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr35231.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr35231.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr35231.c b/gcc/testsuite/gcc.c-torture/execute/pr35231.c new file mode 100644 index 000000000..e0327eb5f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr35231.c @@ -0,0 +1,16 @@ +extern void abort(void); + +int __attribute__((noinline)) +foo(int bits_per_pixel, int depth) +{ + if ((bits_per_pixel | depth) == 1) + abort (); + return bits_per_pixel; +} + +int main() +{ + if (foo(2, 0) != 2) + abort (); + return 0; +} |