[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Layout / aix-pack-attr-on-base.cpp
blob3d0ebabf79a823ce29f82dbf2f2d26f4b85929dc
1 // RUN: %clang_cc1 -emit-llvm -triple powerpc-ibm-aix-xcoff -x c++ < %s | \
2 // RUN: FileCheck %s
4 // RUN: %clang_cc1 -emit-llvm -triple powerpc64-ibm-aix-xcoff -x c++ < %s | \
5 // RUN: FileCheck %s
7 struct A {
8 char x;
9 };
11 struct B {
12 int x;
15 struct __attribute__((__packed__)) C : A, B {} c;
17 int s = sizeof(c);
19 // CHECK: @c = global %struct.C zeroinitializer, align 1
20 // CHECK: @s = global i32 5