summaryrefslogtreecommitdiff
path: root/test/SemaCXX/c99-variable-length-array-cxx11.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:44:14 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:44:14 +0000
commit2b6b257f4e5503a7a2675bdb8735693db769f75c (patch)
treee85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/SemaCXX/c99-variable-length-array-cxx11.cpp
parentb4348ed0b7e90c0831b925fbee00b5f179a99796 (diff)
Notes
Diffstat (limited to 'test/SemaCXX/c99-variable-length-array-cxx11.cpp')
-rw-r--r--test/SemaCXX/c99-variable-length-array-cxx11.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/SemaCXX/c99-variable-length-array-cxx11.cpp b/test/SemaCXX/c99-variable-length-array-cxx11.cpp
index 03cf28388d98..68858410ec76 100644
--- a/test/SemaCXX/c99-variable-length-array-cxx11.cpp
+++ b/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}}
}