diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-09-05 11:13:48 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-09-05 11:13:48 +0000 |
commit | 8af43d55cd238d79fbe2d18ce9681a8d1327dc37 (patch) | |
tree | 0186ff5ad5a80408275161686f93f98ff409515d /gcc | |
parent | 423f265c7049465b70da965e6075911001fed88f (diff) | |
download | gcc-8af43d55cd238d79fbe2d18ce9681a8d1327dc37.zip gcc-8af43d55cd238d79fbe2d18ce9681a8d1327dc37.tar.gz gcc-8af43d55cd238d79fbe2d18ce9681a8d1327dc37.tar.bz2 |
New test
From-SVN: r22254
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typename12.C | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename12.C b/gcc/testsuite/g++.old-deja/g++.pt/typename12.C new file mode 100644 index 0000000..cef6700 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename12.C @@ -0,0 +1,31 @@ +// Special g++ Options: +// execution test - XFAIL *-*-* +// excess errors test - XFAIL *-*-* + +int i = 0; + +template <class T> +struct S { + struct X {}; +}; + +template <class T> +void f(T) +{ + S<T>::X(); +} + +template <> +struct S<int> { + static void X() { i = 1; } +}; + +int main() +{ + f(3); + if (i != 1) + return 1; + else + return 0; +} + |