summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/abi/mangle60.C
blob: f7e893a558a93a3735e6d599b8b433c297527111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/51854
// { dg-options "" }

template <unsigned N> struct A;

template <typename U, typename V>
char foo(U, V);

// { dg-final { scan-assembler "_Z3barIiEvP1AIXszcl3foocvT__ELCi0_42EEEE" } }
template <typename U>
void bar(A<sizeof(foo(U(), 42i))> *);

// { dg-final { scan-assembler "_Z3bazIiEvP1AIXszcl3foocvT__ELCf00000000_00000000EEEE" } }
template <typename U>
void baz(A<sizeof(foo(U(), 0.0fj))> *);

int main() {
   bar<int>(0);
   baz<int>(0);
}
OpenPOWER on IntegriCloud