1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm %s -o- | FileCheck %s
4 void foo() __unaligned
;
5 void foo() const __unaligned
;
6 void foo() volatile __unaligned
;
7 void foo() const volatile __unaligned
;
10 void A::foo() __unaligned
{}
11 // CHECK: define {{(dso_local )?}}[[THISCALL:(x86_thiscallcc )?]]void @_ZNU11__unaligned1A3fooEv(
13 void A::foo() const __unaligned
{}
14 // CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedK1A3fooEv(
16 void A::foo() volatile __unaligned
{}
17 // CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedV1A3fooEv(
19 void A::foo() const volatile __unaligned
{}
20 // CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedVK1A3fooEv(