diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template42.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template42.C | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template42.C b/gcc/testsuite/g++.old-deja/g++.jason/template42.C index 529aaccd348..fca7aa3a92f 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/template42.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/template42.C @@ -1,18 +1 @@ -// Testcase for not evaluating template default args if they are -// never used. - -struct X { - X(int) { } -}; - -template <class T> -struct A { - void f (T t = T()) { } -}; - -main () -{ - A<X> a; - X x (1); - a.f (x); -} +int main () |