OSDN Git Service

* g++.dg/ext/attrib35.C: Fix target selector string.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / typeof2.C
1 // Test typeof with __asm redirection
2 // { dg-do compile }
3 // { dg-options "-O2" }
4
5 extern "C" {
6   extern int foo1;
7   extern int foo1 __asm ("bar1");
8   int foo1 = 1;
9
10   extern int foo2 (int);
11   extern int foo2 (int) __asm ("bar2");
12   int foo2 (int x)
13   {
14     return x;
15   }
16
17   extern int foo3;
18   extern __typeof (foo3) foo3 __asm ("bar3");
19   int foo3 = 1;
20
21   extern int foo4 (int);
22   extern __typeof (foo4) foo4 __asm ("bar4");
23   int foo4 (int x)
24   {
25     return x;
26   }
27 }
28
29 // { dg-final { scan-assembler-not "foo" } }