[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / arm-bitfield-alignment.c
blobe34789face5584a663db4271fd23c8be97ea8ad9
1 // RUN: %clang_cc1 -triple arm-none-eabi -ffreestanding -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple aarch64 -ffreestanding -emit-llvm -o - %s | FileCheck %s
4 extern struct T {
5 int b0 : 8;
6 int b1 : 24;
7 int b2 : 1;
8 } g;
10 int func(void) {
11 return g.b1;
14 // CHECK: @g = external global %struct.T, align 4
15 // CHECK: %{{.*}} = load i64, ptr @g, align 4