[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjC / variable-size-ivar.m
blob2d6c2f287140be112069d94f3e69e42bf5222cdd
1 // RUN: %clang_cc1 -fsyntax-only %s -verify
3 const int ksize = 42;
4 int size = 42;
6 @interface X
8   int arr1[ksize]; // expected-warning{{variable length array folded to constant array}}
9   int arr2[size]; // expected-error{{instance variables must have a constant size}}
10   int arr3[ksize-43]; // expected-error{{array size is negative}}
12 @end