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
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
aggregate.C
1
// { dg-do run }
2
struct A { int i; };
3
4
int main()
5
{
6
A a1 = { 42 };
7
A a2 (a1);
8
A a3 = { 137 };
9
a1 = a3;
10
11
if (a1.i == 137 && a2.i == 42 && a3.i == 137)
12
return 0;
13
return 1;
14
}