summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/deduction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/deduction.cpp')
-rw-r--r--clang/test/SemaTemplate/deduction.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/deduction.cpp b/clang/test/SemaTemplate/deduction.cpp
index d024c314773..7c7b0ab40da 100644
--- a/clang/test/SemaTemplate/deduction.cpp
+++ b/clang/test/SemaTemplate/deduction.cpp
@@ -264,4 +264,12 @@ int main() {
return 0;
}
} // end ns2
-} \ No newline at end of file
+}
+
+namespace nullptr_deduction {
+ template<typename T, T v> struct X {};
+ template<typename T, T v> void f(X<T, v>) {
+ static_assert(!v, "");
+ }
+ void g() { f(X<int*, nullptr>()); }
+}
OpenPOWER on IntegriCloud