summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle17.C
blob: 57f1a045c826128d29077ac744222b8baacd7df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-Wabi -fabi-version=1" }

enum E { e = 3 };

template <int I> struct S {};

template <int I> void f (S<I + e + int (3.7)>) {} // { dg-warning "mangle" }
template void f<7>(S<7 + e + int (3.7)>); // { dg-message "instantiated" }

template <int I> void g (S<I + e + int (3.7)>) {} // { dg-warning "mangle" }
template void g<7>(S<7 + e + int (3.7)>); // { dg-message "instantiated" }