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
PR c++/49528
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref19.C
1
// PR c++/49528
2
// { dg-do run }
3
4
int d;
5
6
struct A
7
{
8
int i;
9
~A() { ++d; };
10
};
11
12
int main()
13
{
14
const int &r = A().i;
15
if (d != 1)
16
return 1;
17
}