clang/test/Layout/aix-pack-attr-on-base.cpp
raw| 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 |