summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-variadic-func.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-variadic-func.cpp')
-rw-r--r--clang/test/Parser/cxx-variadic-func.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-variadic-func.cpp b/clang/test/Parser/cxx-variadic-func.cpp
index 98a34d3e1bf6..73124b8b1b05 100644
--- a/clang/test/Parser/cxx-variadic-func.cpp
+++ b/clang/test/Parser/cxx-variadic-func.cpp
@@ -6,3 +6,24 @@ void f(...) {
}
void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}}
+
+
+namespace GH153445 {
+void f(int = {}...);
+
+struct S {
+ void f(int = {}...);
+ void g(int...);
+};
+
+void S::g(int = {}...) {}
+}
+
+
+template <typename ...T>
+constexpr int a() {return 1;}
+
+struct S2 {
+ template <typename ...Ts>
+ void f(int = a<Ts...>()...);
+};