2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / typeof2.C
blob3c5112fd0f225782fc7653a0236617477efcd2b7
1 // Test typeof with __asm redirection
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 extern "C" {
6   extern int foo1;
7   extern int foo1 __asm ("bar1");
8   int foo1 = 1;
10   extern int foo2 (int);
11   extern int foo2 (int) __asm ("bar2");
12   int foo2 (int x)
13   {
14     return x;
15   }
17   extern int foo3;
18   extern __typeof (foo3) foo3 __asm ("bar3");
19   int foo3 = 1;
21   extern int foo4 (int);
22   extern __typeof (foo4) foo4 __asm ("bar4");
23   int foo4 (int x)
24   {
25     return x;
26   }
29 // { dg-final { scan-assembler-not "foo" } }