diff options
author | John McCall <rjmccall@apple.com> | 2010-07-24 01:17:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-07-24 01:17:35 +0000 |
commit | 268b576b723810d06e971f7f49b6723da256d429 (patch) | |
tree | 780ca6964f67421bcaca3e4e3e72d2778d6428aa /clang/test/CodeGenCXX/mangle.cpp | |
parent | 938533db602b32ab435078e723b656ac6e779a1b (diff) | |
download | bcm5719-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.cpp | 11 |
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>); +} |