diff options
Diffstat (limited to 'test/SemaCXX/c99-variable-length-array.cpp')
| -rw-r--r-- | test/SemaCXX/c99-variable-length-array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/c99-variable-length-array.cpp b/test/SemaCXX/c99-variable-length-array.cpp index 237f56458dab..5fd7e3749f7d 100644 --- a/test/SemaCXX/c99-variable-length-array.cpp +++ b/test/SemaCXX/c99-variable-length-array.cpp @@ -16,8 +16,8 @@ struct POD { void vla(int N) { int array1[N]; // expected-warning{{variable length arrays are a C99 feature}} POD array2[N]; // expected-warning{{variable length arrays are a C99 feature}} - NonPOD array3[N]; // expected-error{{variable length array of non-POD element type 'NonPOD'}} - NonPOD2 array4[N][3]; // expected-error{{variable length array of non-POD element type 'NonPOD2'}} + NonPOD array3[N]; // expected-warning{{variable length arrays are a C99 feature}} + NonPOD2 array4[N][3]; // expected-warning{{variable length arrays are a C99 feature}} } /// Warn about VLAs in templates. |
