annotate clang/test/Index/print-mangled-name.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
2 // RUN: c-index-test -write-pch %t_linux.ast -target i686-pc-linux-gnu %s
anatofuz
parents:
diff changeset
3 // RUN: c-index-test -test-print-mangle %t_linux.ast | FileCheck %s --check-prefix=ITANIUM
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // RUN: c-index-test -write-pch %t_macho.ast -target x86_64-apple-darwin %s
anatofuz
parents:
diff changeset
6 // RUN: c-index-test -test-print-mangle %t_macho.ast | FileCheck %s --check-prefix=MACHO
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // RUN: c-index-test -write-pch %t_msft.ast -target i686-pc-win32 %s
anatofuz
parents:
diff changeset
9 // RUN: c-index-test -test-print-mangle %t_msft.ast | FileCheck %s --check-prefix=MICROSOFT
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 int foo(int, int);
anatofuz
parents:
diff changeset
12 // ITANIUM: mangled=_Z3fooii
anatofuz
parents:
diff changeset
13 // MACHO: mangled=__Z3fooii
anatofuz
parents:
diff changeset
14 // MICROSOFT: mangled=?foo@@YAHHH
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 int foo(float, int);
anatofuz
parents:
diff changeset
17 // ITANIUM: mangled=_Z3foofi
anatofuz
parents:
diff changeset
18 // MACHO: mangled=__Z3foofi
anatofuz
parents:
diff changeset
19 // MICROSOFT: mangled=?foo@@YAHMH
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 struct S {
anatofuz
parents:
diff changeset
22 int x, y;
anatofuz
parents:
diff changeset
23 };
anatofuz
parents:
diff changeset
24 // ITANIUM: StructDecl{{.*}}mangled=]
anatofuz
parents:
diff changeset
25 // MACHO: StructDecl{{.*}}mangled=]
anatofuz
parents:
diff changeset
26 // MICROSOFT: StructDecl{{.*}}mangled=]
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 int foo(S, S&);
anatofuz
parents:
diff changeset
29 // ITANIUM: mangled=_Z3foo1SRS_
anatofuz
parents:
diff changeset
30 // MACHO: mangled=__Z3foo1SRS_
anatofuz
parents:
diff changeset
31 // MICROSOFT: mangled=?foo@@YAHUS
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 extern "C" int foo(int);
anatofuz
parents:
diff changeset
34 // ITANIUM: mangled=foo
anatofuz
parents:
diff changeset
35 // MACHO: mangled=_foo
anatofuz
parents:
diff changeset
36 // MICROSOFT: mangled=_foo