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
* cp-tree.h (struct language_function): Remove x_base_init_list
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ref3.C
1
// Origin: John Wilkinson <jfw@sgi.com>
2
3
template <class T, int& Size>
4
struct Base {
5
Base() : obj(Size) {}
6
T obj;
7
};
8
9
int globalInt = 5;
10
11
struct A {
12
A(int arg) : ia(arg) {}
13
int ia;
14
};
15
16
int main()
17
{
18
Base<A, globalInt> ob;
19
if (ob.obj.ia != 5)
20
return 1;
21
}