xref: /llvm-project/clang/test/Layout/aix-pack-attr-on-base.cpp (revision 05ad8e942996f36cc694478542ccd84aa5bbb80f)
1 // RUN: %clang_cc1 -emit-llvm -triple powerpc-ibm-aix-xcoff -x c++ < %s | \
2 // RUN:   FileCheck %s
3 
4 // RUN: %clang_cc1 -emit-llvm -triple powerpc64-ibm-aix-xcoff -x c++ < %s | \
5 // RUN:   FileCheck %s
6 
7 struct A {
8   char x;
9 };
10 
11 struct B {
12   int x;
13 };
14 
15 struct __attribute__((__packed__)) C : A, B {} c;
16 
17 int s = sizeof(c);
18 
19 // CHECK: @c = global %struct.C zeroinitializer, align 1
20 // CHECK: @s = global i32 5
21