aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Layout/aix-pack-attr-on-base.cpp
blob: 3d0ebabf79a823ce29f82dbf2f2d26f4b85929dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang_cc1 -emit-llvm -triple powerpc-ibm-aix-xcoff -x c++ < %s | \
// RUN:   FileCheck %s

// RUN: %clang_cc1 -emit-llvm -triple powerpc64-ibm-aix-xcoff -x c++ < %s | \
// RUN:   FileCheck %s

struct A {
  char x;
};

struct B {
  int x;
};

struct __attribute__((__packed__)) C : A, B {} c;

int s = sizeof(c);

// CHECK: @c = global %struct.C zeroinitializer, align 1
// CHECK: @s = global i32 5