Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
);
}