summaryrefslogtreecommitdiff
path: root/test/SemaCXX/vla.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/vla.cpp')
-rw-r--r--test/SemaCXX/vla.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/vla.cpp b/test/SemaCXX/vla.cpp
index dae6450553aa..6efb648e7868 100644
--- a/test/SemaCXX/vla.cpp
+++ b/test/SemaCXX/vla.cpp
@@ -17,3 +17,6 @@ namespace PR18581 {
incomplete c[n]; // expected-error {{incomplete}}
}
}
+
+void pr23151(int (&)[*]) { // expected-error {{variable length array must be bound in function definition}}
+}