1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple %s -o - | \ 2 // RUN: FileCheck -check-prefix CHECK-ITANIUM %s 3 // RUN: %clang_cc1 -emit-llvm -triple wasm32-unknown-unknown %s -o - | \ 4 // RUN: FileCheck -check-prefix CHECK-WEBASSEMBLY32 %s 5 // RUN: %clang_cc1 -emit-llvm -triple wasm64-unknown-unknown %s -o - | \ 6 // RUN: FileCheck -check-prefix CHECK-WEBASSEMBLY64 %s 7 8 // rdar://7268289 9 10 class t { 11 public: 12 virtual void foo(void); 13 void bar(void); 14 }; 15 16 void 17 t::bar(void) { 18 // CHECK-ITANIUM: @_ZN1t3barEv({{.*}}) #0 align 2 { 19 // CHECK-WEBASSEMBLY32: @_ZN1t3barEv({{.*}}) #0 { 20 // CHECK-WEBASSEMBLY64: @_ZN1t3barEv({{.*}}) #0 { 21 } 22 23 void 24 t::foo(void) { 25 // CHECK-ITANIUM: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 align 2 { 26 // CHECK-WEBASSEMBLY32: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 { 27 // CHECK-WEBASSEMBLY64: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 { 28 } 29