summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp')
-rw-r--r--clang/test/SemaCXX/c99-variable-length-array-cxx11.cpp6
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}}
}
OpenPOWER on IntegriCloud