diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:33:11 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:33:11 +0000 |
commit | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (patch) | |
tree | 27425930fc0c91650a7f3527fcac8e0f92907b90 /test/SemaObjCXX/class-templ-error-null-init.mm | |
parent | 486754660bb926339aefcf012a3f848592babb8b (diff) |
Diffstat (limited to 'test/SemaObjCXX/class-templ-error-null-init.mm')
-rw-r--r-- | test/SemaObjCXX/class-templ-error-null-init.mm | 7 |
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); |