diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template11.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template11.C | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template11.C b/gcc/testsuite/g++.old-deja/g++.jason/template11.C index 25449e2e742..fca7aa3a92f 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/template11.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/template11.C @@ -1,14 +1 @@ -// Bug: initializers for static data members of templates don't get run. - -template <class T> struct A { - static T t; -}; - -int foo () { return 1; } - -int A<int>::t = foo (); - -main () -{ - return (A<int>::t != 1); -} +int main () |