repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
temp-extend1.C
blob
639f945657353323e6227f3dac5a0a08af9d0aa0
1
// PR c++/81420
2
// { dg-do run { target c++11 } }
3
4
int d;
5
6
struct A
7
{
8
int i[2];
9
~A() { ++d; };
10
};
11
12
struct B: A {};
13
14
int main()
15
{
16
const int &r = B().i[0];
17
if (d != 0)
18
__builtin_abort();
19
}