summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-09 21:48:08 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-09 21:48:08 +0000
commit09277542f20cb42244cebf5d8af024f5ac41090c (patch)
tree2231ca001f62af16dade25a54a0515bed494021f /clang/test/CodeGenCXX/mangle.cpp
parent67dd3a4464254a597683cdeac06c8bb8173dd110 (diff)
downloadbcm5719-llvm-09277542f20cb42244cebf5d8af024f5ac41090c.tar.gz
bcm5719-llvm-09277542f20cb42244cebf5d8af024f5ac41090c.zip
Provide manglings for bool and character literal expressions. These are
just integer-literal expressions with special case implementations in the AST. Fixes rdar://problem/7825453. llvm-svn: 100905
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index ad57c199c42..8f3d3568488 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/test/CodeGenCXX/mangle.cpp
@@ -468,3 +468,12 @@ namespace test9 {
f<int, bar>( 0);
}
}
+
+// <rdar://problem/7825453>
+namespace test10 {
+ template <char P1> struct S {};
+ template <char P2> void f(struct S<false ? 'a' : P2> ) {}
+
+ // CHECK: define weak_odr void @_ZN6test101fILc3EEEvNS_1SIXquLb0ELc97ET_EEE(
+ template void f<(char) 3>(struct S<3>);
+}
OpenPOWER on IntegriCloud