☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template42.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/template42.C
code
plain
raw
1
// { dg-do run }
2
// Testcase for not evaluating template default args if they are
3
// never used.
4
5
struct X {
6
X(int) { }
7
};
8
9
template <class T>
10
struct A {
11
void f (T t = T()) { }
12
};
13
14
int main ()
15
{
16
A<X> a;
17
X x (1);
18
a.f (x);
19
}