Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c

raw
1 /* { dg-do compile { target asm_goto_with_outputs } } */
2 /* PR middle-end/110420 */
3 /* PR middle-end/103979 */
4 /* PR middle-end/98619 */
5 /* Test that the middle-end does not remove the asm goto
6 with an output. */
7
8 static int t;
9 void g(void);
10
11 void f(void)
12 {
13 int __gu_val;
14 asm goto("#my asm "
15 : "=&r"(__gu_val)
16 :
17 :
18 : Efault);
19 t = __gu_val;
20 g();
21 Efault:
22 }
23
24 /* Make sure "my asm " is still in the assembly. */
25 /* { dg-final { scan-assembler "my asm " } } */