2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / template1.C
blob9b5f56f073c5d9cbc4cb2941f9a61227065916b7
1 // { dg-do assemble  }
2 // GROUPS passed templates
4 class String {
5         char s[100];
6 };
8 template <class Element>
9 class Art {
10 public:
11         Element *data;
12         Art() { data=new Element[100]; }
15 template <class Key,class Value>
16 class Assoc {
17 public:
18         struct KeyValue {
19                 Key key;
20                 Value value;
21                 int filled;
22         };
24         Art<KeyValue> data;
25         int fill;
28 int main() {
29         Assoc<String,String> table;