freebsd-nq/test/SemaCXX/type-traits-incomplete.cpp
2010-01-01 10:34:51 +00:00

8 lines
217 B
C++

// RUN: %clang_cc1 -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}}
}