aboutsummaryrefslogtreecommitdiff
path: root/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
commit3dc7e7b9c59b9a2ed4f530b32e710a3738611df7 (patch)
tree0014dac2a2efb1f4a6ef4880d20eb1177700de9e /test/CodeGenCXX/mangle.cpp
parentb7690b425845b636849f25074d64d30aad646473 (diff)
Mangle enum constant expressions. Fixes rdar://problem/8204122
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index 37af79b0f9..3a2e112f16 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/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>);
+}