OSDN Git Service

Some raw string changes from N3077
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / pragma-re-1.C
1 /* { dg-final { scan-assembler "bar" } } */
2 /* { dg-final { scan-assembler-not "foo" } } */
3 /* { dg-final { scan-assembler "_Z3bazv" } } */
4 /* { dg-final { scan-assembler-not "baq" } } */
5
6 #ifndef __PRAGMA_REDEFINE_EXTNAME
7 #error 
8 #endif
9
10 /* This one is expected to work.  */
11 #pragma redefine_extname foo bar
12 extern "C" int foo(void);
13 int (*p)(void) = foo;
14
15 /* This one is expected not to work (redefine_extname
16    can only be applied to extern "C" names).  */
17 #pragma redefine_extname baz baq
18 extern int baz(void);
19 int (*q)(void) = baz;