blob: 690ad3c1b5e524b4bc7a12f23a6c8add86da2b96 [file] [log] [blame]
/* PR middle-end/107385 */
/* { dg-do run { target asm_goto_with_outputs } } */
/* { dg-options "-O2" } */
__attribute__((noipa)) int
foo (void)
{
int x;
asm goto ("": "=r" (x) : "0" (15) :: lab);
x = 6;
lab:
return x;
}
int
main ()
{
if (foo () != 6)
__builtin_abort ();
}