Debian Codegraph @

gcc/testsuite/gcc.dg/pr107385.c

raw
1 /* PR middle-end/107385 */
2 /* { dg-do run { target asm_goto_with_outputs } } */
3 /* { dg-options "-O2" } */
4
5 __attribute__((noipa)) int
6 foo (void)
7 {
8 int x;
9 asm goto ("": "=r" (x) : "0" (15) :: lab);
10 x = 6;
11 lab:
12 return x;
13 }
14
15 int
16 main ()
17 {
18 if (foo () != 6)
19 __builtin_abort ();
20 }