repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
template1.C
blob
9b5f56f073c5d9cbc4cb2941f9a61227065916b7
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
}