Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
is_base_of_diagnostic.C
blob: aac6cfba4803b2f629e0b2eca6f477a4fa8aff02 [
file
] [
log
] [
blame
]
class
A
{
};
class
B
;
// { dg-message "forward declaration" }
union
C
{
};
union
D
;
void
f
()
{
__is_base_of
(
A
,
B
);
// { dg-error "incomplete type" }
__is_base_of
(
C
,
D
);
}