freebsd-dev/test/SemaCXX/type-traits-incomplete.cpp
2009-10-14 18:03:49 +00:00

8 lines
215 B
C++

// RUN: clang-cc -fsyntax-only -verify %s
struct S; // expected-note{{forward declaration of 'struct S'}}
void f() {
__is_pod(S); // expected-error{{incomplete type 'struct S' used in type trait expression}}
}