diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-21 02:52:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-21 02:52:27 +0000 |
commit | 06e767d6703fdae9cda21c6c96c79a0135e2567a (patch) | |
tree | d3a7dbb8de666dacff4c7c9887cd7957a14ee003 /test/CodeGenCXX/mangle-ms.cpp | |
parent | f96b9ce9d9bc8f11c7ec0ab856e592059c0f830a (diff) |
MS: Mangle rvalue references and nullptr_t, and produce back-references when
appropriate. Patch by João Matos!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-ms.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-ms.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-ms.cpp b/test/CodeGenCXX/mangle-ms.cpp index cf4055f72a..326a848fcb 100644 --- a/test/CodeGenCXX/mangle-ms.cpp +++ b/test/CodeGenCXX/mangle-ms.cpp @@ -132,3 +132,12 @@ typedef double RGB[3]; RGB color1; extern const RGB color2 = {}; extern RGB const ((color3)[5]) = {}; + +// PR12603 +enum E {}; +// CHECK: "\01?fooE@@YA?AW4E@@XZ" +E fooE() { return E(); } + +class X {}; +// CHECK: "\01?fooX@@YA?AVX@@XZ" +X fooX() { return X(); } |