summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle-nullptr-arg.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-09-26 02:36:12 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-09-26 02:36:12 +0000
commitd7a6b1640e565487d163023a6a2e83f55476ae96 (patch)
treed5f4472454c04080fc1f329d70b8c71c91b24aa0 /test/CodeGenCXX/mangle-nullptr-arg.cpp
parent073819806ba2441e2a3e550107f1e756a6ee3ad0 (diff)
Fix the AST representation for non-type template arguments to encode
enough information so we can mangle them correctly in cases involving dependent parameter types. (This specifically impacts cases involving null pointers and cases involving parameters of reference type.) Fix the mangler to use this information instead of trying to scavenge it out of the parameter declaration. <rdar://problem/12296776>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-nullptr-arg.cpp')
-rw-r--r--test/CodeGenCXX/mangle-nullptr-arg.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-nullptr-arg.cpp b/test/CodeGenCXX/mangle-nullptr-arg.cpp
index 393de0b0ec..07bf52fc90 100644
--- a/test/CodeGenCXX/mangle-nullptr-arg.cpp
+++ b/test/CodeGenCXX/mangle-nullptr-arg.cpp
@@ -11,3 +11,6 @@ template<int X::*pm> struct PM {};
// CHECK: define void @_Z5test22PMILM1Xi0EE
void test2(PM<nullptr>) { }
+// CHECK: define void @_Z5test316DependentTypePtrIPiLS0_0EE
+template<typename T, T x> struct DependentTypePtr {};
+void test3(DependentTypePtr<int*,nullptr>) { }