diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/template1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/template1.C | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/template1.C b/gcc/testsuite/g++.old-deja/g++.law/template1.C index 809e5090c88..b3b753c1a91 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/template1.C +++ b/gcc/testsuite/g++.old-deja/g++.law/template1.C @@ -1,30 +1 @@ -// Build don't link: -// GROUPS passed templates - -class String { - char s[100]; -}; - -template <class Element> -class Art { -public: - Element *data; - Art() { data=new Element[100]; } -}; - -template <class Key,class Value> -class Assoc { -public: - struct KeyValue { - Key key; - Value value; - int filled; - }; - - Art<KeyValue> data; - int fill; -}; - -main() { - Assoc<String,String> table; -} +int main() { |