diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-28 16:48:44 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-28 16:48:44 +0000 |
commit | 541be14b8aabcb759e6670bcaf49c3a0d705a30c (patch) | |
tree | 99ec4548d68ed90eea14999aea5c48341ba9cedb /gcc | |
parent | a1dd0d36f42ad743930496d8daa6ce3aa0ef95f4 (diff) | |
download | gcc-541be14b8aabcb759e6670bcaf49c3a0d705a30c.zip gcc-541be14b8aabcb759e6670bcaf49c3a0d705a30c.tar.gz gcc-541be14b8aabcb759e6670bcaf49c3a0d705a30c.tar.bz2 |
New test
From-SVN: r22062
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typename13.C | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename13.C b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C new file mode 100644 index 0000000..48d12e6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C @@ -0,0 +1,37 @@ +// Build don't link: +// Special g++ Options: +// excess errors test - XFAIL *-*-* + +template <class T> +struct B +{ + typedef int I; +}; + + +template <class T> +struct D : public B<T> +{ + void f(); +}; + + +template <class T> +void D<T>::f() +{ + I(); +} + + +template <> +struct B<int> +{ + void I(); +}; + + +int main() +{ + D<int> di; + di.f(); +} |