1 /* Test typeof with __asm redirection. */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2" } */ 4 5 extern int foo1; 6 extern int foo1 __asm ("bar1"); 7 int foo1 = 1; 8 9 extern int foo2 (int); 10 extern int foo2 (int) __asm ("bar2"); foo2(int x)11int foo2 (int x) 12 { 13 return x; 14 } 15 16 extern int foo3; 17 extern __typeof (foo3) foo3 __asm ("bar3"); 18 int foo3 = 1; 19 20 extern int foo4 (int); 21 extern __typeof (foo4) foo4 __asm ("bar4"); foo4(int x)22int foo4 (int x) 23 { 24 return x; 25 } 26 27 // { dg-final { scan-assembler-not "foo" } } 28