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

template <unsigned N> struct A;

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

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

// { not-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);
}