brintos

brintos / llvm-project-archived public Read only

0
0
Text · 710 B · 3e341d6 Raw
15 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3struct S; // expected-note 6 {{forward declaration of 'S'}}4 5void f() {6  __is_pod(S); // expected-error{{incomplete type 'S' used in type trait expression}}7  __is_pod(S[]); // expected-error{{incomplete type 'S' used in type trait expression}}8 9  __is_trivially_copyable(S); // expected-error{{incomplete type 'S' used in type trait expression}}10  __is_trivially_copyable(S[]); // expected-error{{incomplete type 'S' used in type trait expression}}11 12  __is_trivially_relocatable(S); // expected-error{{incomplete type 'S' used in type trait expression}}13  __is_trivially_relocatable(S[]); // expected-error{{incomplete type 'S' used in type trait expression}}14}15