diff options
author | Eli Bendersky <eliben@google.com> | 2014-08-01 15:01:10 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2014-08-01 15:01:10 +0000 |
commit | 39163a20f04d411776e62df431648c48ec5db432 (patch) | |
tree | c089e7fff481ec5299381b76099a8fa5b5b6ac8e /test/Index | |
parent | 18dfa9d42e05217a0c17ad051788b705996cefb4 (diff) | |
download | clang-39163a20f04d411776e62df431648c48ec5db432.tar.gz |
Add IR Mangler for more stable mangling.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index')
-rw-r--r-- | test/Index/print-mangled-name.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Index/print-mangled-name.cpp b/test/Index/print-mangled-name.cpp index 5aeb57d04b..b7e79c3f6d 100644 --- a/test/Index/print-mangled-name.cpp +++ b/test/Index/print-mangled-name.cpp @@ -1,23 +1,30 @@ // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-pch %s -o %t_linux.ast // RUN: c-index-test -test-print-mangle %t_linux.ast | FileCheck %s --check-prefix=ITANIUM +// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-pch %s -o %t_macho.ast +// RUN: c-index-test -test-print-mangle %t_macho.ast | FileCheck %s --check-prefix=MACHO + // RUN: %clang_cc1 -triple i686-pc-win32 -emit-pch %s -o %t_msft.ast // RUN: c-index-test -test-print-mangle %t_msft.ast | FileCheck %s --check-prefix=MICROSOFT int foo(int, int); // ITANIUM: mangled=_Z3fooii +// MACHO: mangled=__Z3fooii // MICROSOFT: mangled=?foo@@YAHHH int foo(float, int); // ITANIUM: mangled=_Z3foofi +// MACHO: mangled=__Z3foofi // MICROSOFT: mangled=?foo@@YAHMH struct S { int x, y; }; // ITANIUM: StructDecl{{.*}}mangled=] +// MACHO: StructDecl{{.*}}mangled=] // MICROSOFT: StructDecl{{.*}}mangled=] int foo(S, S&); -// ITANIUM: mangled=_Z3foo1SRS +// ITANIUM: mangled=_Z3foo1SRS_ +// MACHO: mangled=__Z3foo1SRS_ // MICROSOFT: mangled=?foo@@YAHUS |