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
* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp57.C
1
// { dg-do assemble }
2
// Origin: Alex Samuel <samuel@codesourcery.com>
3
4
namespace NS
5
{
6
7
template <class T, int V>
8
struct Base
9
{
10
};
11
12
template <class T>
13
struct Z
14
{
15
const static int value_ = false;
16
};
17
18
template <class T>
19
struct A :
20
public Base <T, Z<T>::value_>
21
{
22
};
23
24
template <class T>
25
void f(T)
26
{
27
}
28
29
}
30
31
32
template <template <class T> class U>
33
struct B
34
{
35
};
36
37
38
int
39
main ()
40
{
41
B<NS::A> ba;
42
f (ba); // Koenig lookup
43
return 0;
44
}
45