OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
partial1.C
1
// { dg-do run }
2
template<class T_type, int N>
3
class foo {
4
public:
5
enum bar { z = 0 };
6
};
7
8
template<int N>
9
class foo<double, N> {
10
public:
11
enum bar { z = 1 };
12
};
13
14
template<class T_type>
15
class foo<T_type, 2> {
16
public:
17
enum bar { z = 2 };
18
};
19
20
int main()
21
{
22
if ((foo<int,3>::z == 0) && (foo<double,3>::z == 1)
23
&& (foo<float,2>::z == 2))
24
return 0;
25
else
26
return 1;
27
}