diff options
author | John McCall <rjmccall@apple.com> | 2011-04-28 02:52:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-04-28 02:52:03 +0000 |
commit | 5a7e6f781afc53f3c04c146d74aa7eff15f1338e (patch) | |
tree | f133c219a3064d60edbfe1054994ccb73175091f /test/CodeGenCXX/mangle-exprs.cpp | |
parent | 642a75f883e644bcfbb82e7af0313776ad1ce33c (diff) |
Implement the mangling for non-ADL call expressions that we just
worked out.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-exprs.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-exprs.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-exprs.cpp b/test/CodeGenCXX/mangle-exprs.cpp index e5f26e584b..5014a9145e 100644 --- a/test/CodeGenCXX/mangle-exprs.cpp +++ b/test/CodeGenCXX/mangle-exprs.cpp @@ -49,3 +49,19 @@ namespace Casts { // CHECK: define weak_odr void @_ZN5Casts5auto_IiEEvDTnw_DapicvT__EEE( template void auto_<int>(int*); } + +namespace test1 { + short foo(short); + int foo(int); + + // CHECK: define linkonce_odr signext i16 @_ZN5test11aIsEEDTcl3foocvT__EEES1_( + template <class T> auto a(T t) -> decltype(foo(T())) { return foo(t); } + + // CHECK: define linkonce_odr signext i16 @_ZN5test11bIsEEDTcp3foocvT__EEES1_( + template <class T> auto b(T t) -> decltype((foo)(T())) { return (foo)(t); } + + void test(short s) { + a(s); + b(s); + } +} |