diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 | 
| commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
| tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/SemaCXX/c99-variable-length-array.cpp | |
| parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) | |
Notes
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 237f56458dab3..5fd7e3749f7d1 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.  | 
