OSDN Git Service

57f1a045c826128d29077ac744222b8baacd7df3
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / mangle17.C
1 // { dg-options "-Wabi -fabi-version=1" }
2
3 enum E { e = 3 };
4
5 template <int I> struct S {};
6
7 template <int I> void f (S<I + e + int (3.7)>) {} // { dg-warning "mangle" }
8 template void f<7>(S<7 + e + int (3.7)>); // { dg-message "instantiated" }
9
10 template <int I> void g (S<I + e + int (3.7)>) {} // { dg-warning "mangle" }
11 template void g<7>(S<7 + e + int (3.7)>); // { dg-message "instantiated" }