OSDN Git Service

2009-07-17 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / gnu-inline-class.C
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */ // such that static functions are optimized out
3 /* { dg-final { scan-assembler "func1" } } */
4 /* { dg-final { scan-assembler "func2" } } */
5 /* { dg-final { scan-assembler-not "func3" } } */
6 /* { dg-final { scan-assembler "func4" } } */
7 /* { dg-final { scan-assembler "func5" } } */
8
9 #define IN_CLASS gnu_test
10
11 struct IN_CLASS {
12   int func1(void);
13   int func2(void);
14   int func3(void);
15   int func4(void);
16   int func5(void);
17 };
18
19 #include "gnu-inline-global.C"