[Github] Label lldb-dap PRs (#125139)
[llvm-project.git] / clang / test / Layout / aix-power-alignment-typedef-2.cpp
blob67e2863f2edce0641b758a64c743495373cba390
1 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -emit-llvm -x c++ < %s | \
2 // RUN: FileCheck %s
4 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -emit-llvm -x c++ < %s | \
5 // RUN: FileCheck %s
7 namespace test1 {
8 struct S {
9 double x;
12 typedef struct S __attribute__((__aligned__(2))) SS;
14 SS ss;
16 // CHECK: @{{.*}}test1{{.*}}ss{{.*}} = global %"struct.test1::S" zeroinitializer, align 2
17 } // namespace test1
19 namespace test2 {
20 struct __attribute__((__aligned__(2))) S {
21 double x;
24 typedef struct S SS;
26 SS ss;
28 // CHECK: @{{.*}}test2{{.*}}ss{{.*}} = global %"struct.test2::S" zeroinitializer, align 8
29 } // namespace test2