diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-07-24 10:58:19 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-07-24 10:58:19 -0400 |
commit | 67152996a3ceb720ff5070ccd7f9f0afe0536cf5 (patch) | |
tree | 6e6e3cd326ff5c0c2f6c86813c261bffecf8650c /gcc | |
parent | bc22fa9801c88bbf67efe464a378a8812d2e8ed6 (diff) | |
download | gcc-67152996a3ceb720ff5070ccd7f9f0afe0536cf5.zip gcc-67152996a3ceb720ff5070ccd7f9f0afe0536cf5.tar.gz gcc-67152996a3ceb720ff5070ccd7f9f0afe0536cf5.tar.bz2 |
x
From-SVN: r21365
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/typedef4.C | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/partial2.C | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/typedef4.C b/gcc/testsuite/g++.old-deja/g++.other/typedef4.C new file mode 100644 index 0000000..8b5ba49 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/typedef4.C @@ -0,0 +1,9 @@ +// Build don't link: + +struct A { + void f (); +}; + +typedef A foo; + +void foo::f() { } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/partial2.C b/gcc/testsuite/g++.old-deja/g++.pt/partial2.C index 9948534..cdf2199 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/partial2.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/partial2.C @@ -14,10 +14,10 @@ typedef unsigned int other1_t; template<class T> struct foo3 {}; template<class T, other1_t n> struct foo3<T[n]>; foo3<char> bar3; -foo3<char[10]> baz3; // ERROR - incomplete type - XFAIL *-*-* +foo3<char[10]> baz3; // ERROR - incomplete type - typedef int other2_t; template<class T> struct foo4 {}; template<class T, other1_t n> struct foo4<T[n]>; foo4<char> bar4; -foo4<char[10]> baz4; // ERROR - incomplete type - XFAIL *-*-* +foo4<char[10]> baz4; // ERROR - incomplete type - |