Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / unaligned-member-qualifier.cpp
blob57cfbd9e2c2128b9b4d443a2e975f90ab0912e13
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm %s -o- | FileCheck %s
3 struct A {
4 void foo() __unaligned;
5 void foo() const __unaligned;
6 void foo() volatile __unaligned;
7 void foo() const volatile __unaligned;
8 };
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(