diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-06-04 16:46:26 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-04 16:46:26 +0000 |
commit | a2146d56c26bc5d100700129a70232beb0266889 (patch) | |
tree | 87f0b0a4026ab534ea4a00baaa2d406da59ed6f8 /test/CodeGenCXX/mangle-ms-cxx11.cpp | |
parent | bf87624a623ca6de8a2bd864921e129fb848fff6 (diff) |
MS-ABI: Implement user defined literals
Straightforward implementation of UDLs, it's compatible with VS "14".
This nearly completes our implementation of C++ name mangling for the
MS-ABI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-ms-cxx11.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-ms-cxx11.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-ms-cxx11.cpp b/test/CodeGenCXX/mangle-ms-cxx11.cpp index c174e48c1d..0cd23f5122 100644 --- a/test/CodeGenCXX/mangle-ms-cxx11.cpp +++ b/test/CodeGenCXX/mangle-ms-cxx11.cpp @@ -130,3 +130,6 @@ void A::foo() __restrict & {} void A::foo() __restrict && {} // CHECK-DAG: @"\01?foo@A@PR19361@@QIHAEXXZ" } + +int operator"" _deg(long double) { return 0; } +// CHECK-DAG: @"\01??__K_deg@@YAHO@Z" |