Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aggr-base4.C
blob: 7a4865a1dd0bbdbd9308ff2c80d8a9e0f6938c54 [
file
] [
log
] [
blame
]
// { dg-do run { target c++17 } }
struct
derived
;
struct
base
{
};
struct
derived
:
base
{
int
i
;
};
bool
flag
;
base
f
()
{
flag
=
true
;
return
base
();
}
derived d2
{
f
(),
1
};
int
main
()
{
return
(!
flag
||
d2
.
i
!=
1
);
}