2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / typeof-1.c
blob233b39425b8bdbc32b5b7fb24f3a4b862e276249
1 /* Test typeof with __asm redirection. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 extern int foo1;
6 extern int foo1 __asm ("bar1");
7 int foo1 = 1;
9 extern int foo2 (int);
10 extern int foo2 (int) __asm ("bar2");
11 int foo2 (int x)
13 return x;
16 extern int foo3;
17 extern __typeof (foo3) foo3 __asm ("bar3");
18 int foo3 = 1;
20 extern int foo4 (int);
21 extern __typeof (foo4) foo4 __asm ("bar4");
22 int foo4 (int x)
24 return x;
27 // { dg-final { scan-assembler-not "foo" } }