diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto/20100518_0.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20100518_0.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/20100518_0.c b/gcc/testsuite/gcc.dg/lto/20100518_0.c new file mode 100644 index 000000000..c0e9c8be2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100518_0.c @@ -0,0 +1,14 @@ +/* { dg-lto-do link } */ +/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */ +/* Forgot to steam in/out the number of labels for asm goto. PR44184. */ + +extern int printf (__const char *__restrict __format, ...); + +int x = 1; +int main () +{ + asm goto ("decl %0; jnz %l[a]" :: "m"(x) : "memory" : a); + printf ("Hello world\n"); +a: + return 0; +} |