1 ; RUN: llvm-undname < %s | FileCheck %s
\r
2 ; RUN: llvm-undname --no-calling-convention < %s | FileCheck %s --check-prefix=CHECK-NO-CALLING-CONV
\r
3 ; RUN: llvm-undname --no-return-type < %s | FileCheck %s --check-prefix=CHECK-NO-RETURN
\r
4 ; RUN: llvm-undname --no-access-specifier < %s | FileCheck %s --check-prefix=CHECK-NO-ACCESS
\r
5 ; RUN: llvm-undname --no-member-type < %s | FileCheck %s --check-prefix=CHECK-NO-MEMBER-TYPE
\r
6 ; RUN: llvm-undname --no-variable-type < %s | FileCheck %s --check-prefix=CHECK-NO-VARIABLE-TYPE
\r
7 ; RUN: llvm-undname --no-calling-convention --no-return-type --no-access-specifier --no-member-type --no-variable-type < %s | FileCheck %s --check-prefix=CHECK-NO-ALL
\r
9 ?func@MyClass@@UEAAHHH@Z
\r
10 ; CHECK: public: virtual int __cdecl MyClass::func(int, int)
\r
11 ; CHECK-NO-CALLING-CONV: public: virtual int MyClass::func(int, int)
\r
12 ; CHECK-NO-RETURN: public: virtual __cdecl MyClass::func(int, int)
\r
13 ; CHECK-NO-ACCESS: {{^}}virtual int __cdecl MyClass::func(int, int)
\r
14 ; CHECK-NO-MEMBER-TYPE: public: int __cdecl MyClass::func(int, int)
\r
15 ; CHECK-NO-VARIABLE-TYPE: public: virtual int __cdecl MyClass::func(int, int)
\r
16 ; CHECK-NO-ALL: {{^}}MyClass::func(int, int)
\r
19 ; CHECK: int (*array2d)[10]
\r
20 ; CHECK-NO-CALLING-CONV: int (*array2d)[10]
\r
21 ; CHECK-NO-RETURN: int (*array2d)[10]
\r
22 ; CHECK-NO-ACCESS: int (*array2d)[10]
\r
23 ; CHECK-NO-MEMBER-TYPE: int (*array2d)[10]
\r
24 ; CHECK-NO-VARIABLE-TYPE: array2d
\r
25 ; CHECK-NO-ALL: array2d
\r
28 ; CHECK: int (*abc::a)[10]
\r
29 ; CHECK-NO-CALLING-CONV: int (*abc::a)[10]
\r
30 ; CHECK-NO-RETURN: int (*abc::a)[10]
\r
31 ; CHECK-NO-ACCESS: int (*abc::a)[10]
\r
32 ; CHECK-NO-MEMBER-TYPE: int (*abc::a)[10]
\r
33 ; CHECK-NO-VARIABLE-TYPE: abc::a
\r
34 ; CHECK-NO-ALL: abc::a
\r
37 ; CHECK: unsigned char *x
\r
38 ; CHECK-NO-CALLING-CONV: unsigned char *x
\r
39 ; CHECK-NO-RETURN: unsigned char *x
\r
40 ; CHECK-NO-ACCESS: unsigned char *x
\r
41 ; CHECK-NO-MEMBER-TYPE: unsigned char *x
\r
42 ; CHECK-NO-VARIABLE-TYPE: x
\r