1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm -o- %s | FileCheck %s
3 void fa(__unaligned
struct A
*) {}
4 // CHECK: define {{(dso_local )?}}void @_Z2faPU11__unaligned1A(
6 void ga(struct A
*, struct A
*) {}
7 // CHECK: define {{(dso_local )?}}void @_Z2gaP1AS0_(
9 void gb(__unaligned
struct A
*, struct A
*) {}
10 // CHECK: define {{(dso_local )?}}void @_Z2gbPU11__unaligned1APS_(
12 void gc(struct A
*, __unaligned
struct A
*) {}
13 // CHECK: define {{(dso_local )?}}void @_Z2gcP1APU11__unalignedS_(
15 void gd(__unaligned
struct A
*, __unaligned
struct A
*) {}
16 // CHECK: define {{(dso_local )?}}void @_Z2gdPU11__unaligned1AS1_(
18 void hb(__unaligned
struct A
*, __unaligned
const struct A
*) {}
19 // CHECK: define {{(dso_local )?}}void @_Z2hbPU11__unaligned1APU11__unalignedKS_(
21 void ja(__unaligned
struct A
*, __unaligned
struct A
*__unaligned
*, __unaligned
struct A
*__unaligned
*__unaligned
*) {}
22 // CHECK: define {{(dso_local )?}}void @_Z2jaPU11__unaligned1APU11__unalignedS1_PU11__unalignedS3_(
25 void memptr(void (A::*a
)(int) __unaligned
) {}
26 // CHECK: define {{.*}} @_Z6memptrM1AU11__unalignedFviE(
28 void jb(__unaligned
struct A
*, __unaligned
struct A
**, __unaligned
struct A
*__unaligned
*__unaligned
*) {}
29 // CHECK: @_Z2jbPU11__unaligned1APS1_PU11__unalignedPU11__unalignedS1_(
31 template <typename T
, typename Q
>
34 void ia(__unaligned
struct A
&a
) {
37 // CHECK: @_Z2taIU11__unaligned1AS1_EvRT_PT0_(