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
* g++.dg/abi/mangle19-1.C: Adjust for default -Wabi.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ref3.C
1
// { dg-do run }
2
// { dg-prune-output "mangled name" }
3
// Origin: John Wilkinson <jfw@sgi.com>
4
5
template <class T, int& Size>
6
struct Base {
7
Base() : obj(Size) {}
8
T obj;
9
};
10
11
int globalInt = 5;
12
13
struct A {
14
A(int arg) : ia(arg) {}
15
int ia;
16
};
17
18
int main()
19
{
20
Base<A, globalInt> ob;
21
if (ob.obj.ia != 5)
22
return 1;
23
}