2017-06-02 15:14:34 +08:00
|
|
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm %s -o- | FileCheck %s
|
|
|
|
|
|
|
|
struct A {
|
|
|
|
void foo() __unaligned;
|
|
|
|
void foo() const __unaligned;
|
|
|
|
void foo() volatile __unaligned;
|
|
|
|
void foo() const volatile __unaligned;
|
|
|
|
};
|
|
|
|
|
|
|
|
void A::foo() __unaligned {}
|
2017-06-02 17:53:05 +08:00
|
|
|
// CHECK: define [[THISCALL:(x86_thiscallcc )?]]void @_ZNU11__unaligned1A3fooEv(
|
2017-06-02 15:14:34 +08:00
|
|
|
|
|
|
|
void A::foo() const __unaligned {}
|
2017-06-02 17:53:05 +08:00
|
|
|
// CHECK: define [[THISCALL]]void @_ZNU11__unalignedK1A3fooEv(
|
2017-06-02 15:14:34 +08:00
|
|
|
|
|
|
|
void A::foo() volatile __unaligned {}
|
2017-06-02 17:53:05 +08:00
|
|
|
// CHECK: define [[THISCALL]]void @_ZNU11__unalignedV1A3fooEv(
|
2017-06-02 15:14:34 +08:00
|
|
|
|
|
|
|
void A::foo() const volatile __unaligned {}
|
2017-06-02 17:53:05 +08:00
|
|
|
// CHECK: define [[THISCALL]]void @_ZNU11__unalignedVK1A3fooEv(
|