summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/type-traits-incomplete.cpp
blob: c0a520e167698afabe14f3782eaed93c835817eb (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -verify %s 

struct S; // expected-note 2 {{forward declaration of 'S'}}

void f() {
  __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}}
}