comparison gcc/testsuite/g++.dg/ext/gnu-inline-template-func.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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);