summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-24 01:17:35 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-24 01:17:35 +0000
commit268b576b723810d06e971f7f49b6723da256d429 (patch)
tree780ca6964f67421bcaca3e4e3e72d2778d6428aa /clang/test/CodeGenCXX/mangle.cpp
parent938533db602b32ab435078e723b656ac6e779a1b (diff)
downloadbcm5719-llvm-268b576b723810d06e971f7f49b6723da256d429.tar.gz
bcm5719-llvm-268b576b723810d06e971f7f49b6723da256d429.zip
Mangle enum constant expressions. Fixes rdar://problem/8204122
llvm-svn: 109315
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index 37af79b0f9c..3a2e112f16c 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/test/CodeGenCXX/mangle.cpp
@@ -518,3 +518,14 @@ namespace test14 {
int S::a() { return S::x; }
}
}
+
+// rdar://problem/8204122
+namespace test15 {
+ enum E { e = 3 };
+ template <int I> struct S {};
+
+ template <int I> void f(S<I + e>) {}
+
+ // CHECK: define weak_odr void @_ZN6test151fILi7EEEvNS_1SIXplT_LNS_1EE3EEEE(
+ template void f<7>(S<7 + e>);
+}
OpenPOWER on IntegriCloud