Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/template1.C

raw
1 // { dg-do assemble }
2 // GROUPS passed templates
3
4 class String {
5 char s[100];
6 };
7
8 template <class Element>
9 class Art {
10 public:
11 Element *data;
12 Art() { data=new Element[100]; }
13 };
14
15 template <class Key,class Value>
16 class Assoc {
17 public:
18 struct KeyValue {
19 Key key;
20 Value value;
21 int filled;
22 };
23
24 Art<KeyValue> data;
25 int fill;
26 };
27
28 int main() {
29 Assoc<String,String> table;
30 }