summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20100518_0.c
blob: c0e9c8be2f73f781bffa8b3e6f9e6dd19f9c0868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}