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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
nested1.C
blob
e504815458ba8ecd3a7a71c382855b97fff9a37f
1
// { dg-do assemble }
2
3
template <class T1,class T2>
4
struct X
5
{
6
T1 a;
7
8
struct Y
9
{
10
T2 x;
11
Y (T2 _x) { x=_x; }
12
};
13
14
};
15
16
template <class T1>
17
struct X<T1,int>
18
{
19
T1 a;
20
21
struct Y
22
{
23
int x;
24
Y (int _x) { x=_x; }
25
};
26
27
};
28
29
template <>
30
struct X<int,int>
31
{
32
int a;
33
34
struct Y
35
{
36
int x;
37
Y (int _x) { x=_x; }
38
};
39
40
};
41
42
void f ()
43
{
44
X<char,char> t1;
45
X<char,int> t2;
46
X<int,int> t3;
47
}