summaryrefslogtreecommitdiff
path: root/test/SemaCXX/crashes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/crashes.cpp')
-rw-r--r--test/SemaCXX/crashes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/crashes.cpp b/test/SemaCXX/crashes.cpp
index 1570d12eeb2f..6ae476f7080c 100644
--- a/test/SemaCXX/crashes.cpp
+++ b/test/SemaCXX/crashes.cpp
@@ -231,3 +231,9 @@ namespace pr16989 {
};
void C2::f() {}
}
+
+namespace pr20660 {
+ appendList(int[]...); // expected-error {{C++ requires a type specifier for all declarations}}
+ appendList(int[]...) { } // expected-error {{C++ requires a type specifier for all declarations}}
+}
+