OSDN Git Service

2012-06-14 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / gnu-inline-template-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 template <typename T> struct gnu_test {
10   int func1(void);
11   int func2(void);
12   int func3(void);
13   int func4(void);
14   int func5(void);
15 };
16
17 #define defpfx template <typename T>
18 #define IN_CLASS gnu_test<T>
19
20 #include "gnu-inline-global.C"
21
22 template struct gnu_test<int>;