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
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi4.C
blob
6f97b0671542978532ad27a2669afb140a94eb21
1
// { dg-do run { target c++11 } }
2
3
int c;
4
5
struct A
6
{
7
A() { }
8
A(const A&) { }
9
};
10
11
A f() { ++c; return A(); }
12
13
struct B
14
{
15
A a = f();
16
};
17
18
int main()
19
{
20
B b1, b2;
21
if (c != 2)
22
__builtin_abort();
23
}