diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-04-29 09:39:50 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-04-29 09:39:50 +0000 |
commit | e7545b33ff79c55d08d78a35b052e494ea49a0bc (patch) | |
tree | cc287689fbc2a32c9bf08d9842350a8b2e0dbc59 /clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp | |
parent | d8c12badad7765655e86810eab60db23d1258326 (diff) | |
download | bcm5719-llvm-e7545b33ff79c55d08d78a35b052e494ea49a0bc.tar.gz bcm5719-llvm-e7545b33ff79c55d08d78a35b052e494ea49a0bc.zip |
Implementation of VlA of GNU C++ extension, by Vladimir Yakovlev.
This enables GNU C++ extension "Variable length array" by default.
Differential Revision: http://reviews.llvm.org/D18823
llvm-svn: 268018
Diffstat (limited to 'clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp')
-rw-r--r-- | clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp b/clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp index 03cf28388d9..68858410ec7 100644 --- a/clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp +++ b/clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp @@ -22,5 +22,9 @@ void vla(int N) { POD array2[N]; // expected-warning{{variable length arrays are a C99 feature}} StillPOD array3[N]; // expected-warning{{variable length arrays are a C99 feature}} StillPOD2 array4[N][3]; // expected-warning{{variable length arrays are a C99 feature}} - NonPOD array5[N]; // expected-error{{variable length array of non-POD element type 'NonPOD'}} + NonPOD array5[N]; // expected-error{{no matching constructor for initialization of 'NonPOD [N]'}} + // expected-warning@-1{{variable length arrays are a C99 feature}} + // expected-note@-16{{candidate constructor not viable}} + // expected-note@-18{{candidate constructor (the implicit copy constructor) not viable}} + // expected-note@-19{{candidate constructor (the implicit move constructor) not viable}} } |