repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template42.C
blob
63122ceb0b4d8995d82dfa3d8ac0bbc7ec8bb5b2
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
}