mangle-valist.cpp
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "stdarg.h"
namespace test1 {
void test1(const char *fmt, va_list ap) {
}
}
class Test2 {
public:
void test2(const char *fmt, va_list ap);
};
void Test2::test2(const char *fmt, va_list ap) {
}
// RUN: %clang_cc1 %s -emit-llvm -o - \
// RUN: -triple armv7-unknown-linux \
// RUN: | FileCheck -check-prefix=CHECK-MANGLE-ARM-AAPCS %s
// CHECK-MANGLE-ARM-AAPCS: @_ZN5test15test1EPKcSt9__va_list
// CHECK-MANGLE-ARM-AAPCS: @_ZN5Test25test2EPKcSt9__va_list
// RUN: %clang_cc1 %s -emit-llvm -o - \
// RUN: -triple armv7-unknown-linux -target-abi apcs-gnu \
// RUN: | FileCheck -check-prefix=CHECK-MANGLE-ARM-APCS %s
// CHECK-MANGLE-ARM-APCS: @_ZN5test15test1EPKcPv
// CHECK-MANGLE-ARM-APCS: @_ZN5Test25test2EPKcPv
// RUN: %clang_cc1 %s -emit-llvm -o - \
// RUN: -triple mipsel-unknown-linux \
// RUN: | FileCheck -check-prefix=CHECK-MANGLE-MIPSEL %s
// CHECK-MANGLE-MIPSEL: @_ZN5test15test1EPKcPv
// CHECK-MANGLE-MIPSEL: @_ZN5Test25test2EPKcPv
// RUN: %clang_cc1 %s -emit-llvm -o - \
// RUN: -triple i686-unknown-linux \
// RUN: | FileCheck -check-prefix=CHECK-MANGLE-X86 %s
// CHECK-MANGLE-X86: @_ZN5test15test1EPKcPc
// CHECK-MANGLE-X86: @_ZN5Test25test2EPKcPc
// RUN: %clang_cc1 %s -emit-llvm -o - \
// RUN: -triple x86_64-unknown-linux \
// RUN: | FileCheck -check-prefix=CHECK-MANGLE-X86-64 %s
// CHECK-MANGLE-X86-64: @_ZN5test15test1EPKcP13__va_list_tag
// CHECK-MANGLE-X86-64: @_ZN5Test25test2EPKcP13__va_list_tag