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++.ns
/
template18.C
blob
f5a4755e8c3af1edce33e81fc731b0d603733b4a
1
// { dg-do link }
2
// Origin: Andrey Slepuhin <pooh@msu.ru>
3
4
namespace A
5
{
6
int j;
7
8
template <typename val_t>
9
struct X
10
{
11
inline X ()
12
{
13
extern int j;
14
i = j;
15
}
16
17
int i;
18
};
19
}
20
21
int main ()
22
{
23
A::X<int> x;
24
}