111
|
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-not "func5" } } */
|
|
8
|
|
9 #define defpfx template <typename T>
|
|
10
|
|
11 #include "gnu-inline-global.C"
|
|
12
|
|
13 template int func1<int>(void);
|
|
14 template int func2<int>(void);
|
|
15 template int func3<int>(void);
|
|
16 template int func4<int>(void);
|
|
17 template int func5<int>(void);
|