// RUN: %clang_cc1 %s -ffreestanding -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic -fpascal-strings -std=c99
int // expected-error {{incomplete type 'void' is not assignable}}
// rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e.
int expr;
char w;
char v;
int implicitConversion = 1.0;
char floatArith; // expected-warning {{variable length array folded to constant array as an extension}}
// __builtin_constant_p as the condition of ?: allows arbitrary foldable
// constants to be transmogrified into i-c-e's.
char b;
;
// Check that we can evaluate statement-expressions properly when
// constant-folding inside an ICE.
void
void
void
char array;
int x;
// PR1992
void
// rdar://4213768
int expr;
char y;
char z;
// Comma tests
int comma1; // expected-warning {{left operand of comma operator has no effect}}
int comma2; // expected-warning {{use of logical '||' with constant operand}} \
// expected-note {{use '|' for a bitwise operation}} \
// expected-warning {{left operand of comma operator has no effect}}
int comma3; // expected-warning {{variable length array folded to constant array as an extension}} \
// expected-warning {{left operand of comma operator has no effect}}
// Pointer + __builtin_constant_p
char pbcp; // expected-error {{variable length array declaration not allowed at file scope}}
int illegaldiv1a;
int illegaldiv1b; //expected-error{{variable length array declaration not allowed at file scope}}
int illegaldiv2; // expected-error {{variable length array declaration not allowed at file scope}}
int illegaldiv3; // expected-error {{variable length array declaration not allowed at file scope}}
// PR9262
int illegaldiv4; // expected-error {{variable length array declaration not allowed at file scope}}
int chooseexpr;
int realop;
int imagop;
int *PR14729 = 0 ?: 1/0; // expected-error {{not a compile-time constant}} expected-warning 2{{}} expected-error {{incompatible integer to pointer conversion initializing 'int *' with an expression of type 'int'}}
int bcp_call_v;
int bcp_call_a = ;