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
* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
return3.C
1
// { dg-do run }
2
// PRMS id: 10912
3
4
struct A {
5
A() { i=10; }
6
int i;
7
};
8
struct B : public A {};
9
B b;
10
11
A f()
12
{
13
return b;
14
}
15
16
int main ()
17
{
18
A a = f ();
19
return a.i != 10;
20
}