freebsd-dev/test/SemaCXX/type-traits-incomplete.cpp

9 lines
294 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-10-14 18:03:49 +00:00
struct S; // expected-note 2 {{forward declaration of 'S'}}
2009-10-14 18:03:49 +00:00
void f() {
2010-03-10 17:45:58 +00:00
__is_pod(S); // expected-error{{incomplete type 'S' used in type trait expression}}
__is_pod(S[]); // expected-error{{incomplete type 'S' used in type trait expression}}
2009-10-14 18:03:49 +00:00
}