Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr55094.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR middle-end/55094 */ /* { dg-do compile } */ /* { dg-options "-fcompare-debug -Os" } */ /* { dg-additional-options "-fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ extern int fn (long); int v; int foo (int x, long *y) { if (x) { fn (y[0]); __builtin_trap (); } __builtin_trap (); } int bar (int x, long *y) { if (x) { fn (y[0]); v = 1; __builtin_unreachable (); } v = 1; __builtin_unreachable (); } int baz (int x, long *y) { if (x) { fn (y[0]); v = 1; __builtin_unreachable (); } v = 1; int w = 1; __builtin_unreachable (); }