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++.pt
/
typename12.C
blob
d6b6fe151bdda00a582cb4455f90db654da3632a
1
// { dg-do run }
2
// { dg-options "" }
3
// execution test
4
5
int i = 0;
6
7
template <class T>
8
struct S {
9
struct X {};
10
};
11
12
template <class T>
13
void f(T)
14
{
15
S<T>::X();
16
}
17
18
template <>
19
struct S<int> {
20
static void X() { i = 1; }
21
};
22
23
int main()
24
{
25
f(3);
26
if (i != 1)
27
return 1;
28
else
29
return 0;
30
}
31