aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/type-traits-incomplete.cpp
blob: ac8ec452b93f85eea034b8ab386ee0d0b15f2667 (plain)
1
2
3
4
5
6
7
// 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}}
}