summaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/class-templ-error-null-init.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/class-templ-error-null-init.mm')
-rw-r--r--test/SemaObjCXX/class-templ-error-null-init.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjCXX/class-templ-error-null-init.mm b/test/SemaObjCXX/class-templ-error-null-init.mm
new file mode 100644
index 0000000000000..b621a3ab24dea
--- /dev/null
+++ b/test/SemaObjCXX/class-templ-error-null-init.mm
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
+// expected-no-diagnostics
+template <typename a, int* = nullptr>
+struct e {
+ e(a) {}
+};
+e c(0);