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
/
ref3.C
blob
29bf3e869c19f79f1816a508285affd8457a05f9
1
// { dg-do run }
2
// Origin: John Wilkinson <jfw@sgi.com>
3
4
template <class T, int& Size>
5
struct Base {
6
Base() : obj(Size) {}
7
T obj;
8
};
9
10
int globalInt = 5;
11
12
struct A {
13
A(int arg) : ia(arg) {}
14
int ia;
15
};
16
17
int main()
18
{
19
Base<A, globalInt> ob;
20
if (ob.obj.ia != 5)
21
return 1;
22
}