2015-09-04 06:51:53 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple %s -o - | \
|
|
|
|
// RUN: FileCheck -check-prefix CHECK-ITANIUM %s
|
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple wasm32-unknown-unknown %s -o - | \
|
|
|
|
// RUN: FileCheck -check-prefix CHECK-WEBASSEMBLY32 %s
|
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple wasm64-unknown-unknown %s -o - | \
|
|
|
|
// RUN: FileCheck -check-prefix CHECK-WEBASSEMBLY64 %s
|
2011-08-17 05:41:38 +08:00
|
|
|
|
|
|
|
// rdar://7268289
|
|
|
|
|
|
|
|
class t {
|
|
|
|
public:
|
|
|
|
virtual void foo(void);
|
|
|
|
void bar(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
t::bar(void) {
|
2015-09-04 06:51:53 +08:00
|
|
|
// CHECK-ITANIUM: @_ZN1t3barEv({{.*}}) #0 align 2 {
|
|
|
|
// CHECK-WEBASSEMBLY32: @_ZN1t3barEv({{.*}}) #0 {
|
|
|
|
// CHECK-WEBASSEMBLY64: @_ZN1t3barEv({{.*}}) #0 {
|
2011-08-17 05:41:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
t::foo(void) {
|
2015-09-04 06:51:53 +08:00
|
|
|
// CHECK-ITANIUM: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 align 2 {
|
|
|
|
// CHECK-WEBASSEMBLY32: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 {
|
|
|
|
// CHECK-WEBASSEMBLY64: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 {
|
2011-08-17 05:41:38 +08:00
|
|
|
}
|