30 lines · cpp
1// RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -emit-llvm -x c++ < %s | \2// RUN: FileCheck %s3 4// RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -emit-llvm -x c++ < %s | \5// RUN: FileCheck %s6 7namespace test1 {8struct S {9 double x;10};11 12typedef struct S __attribute__((__aligned__(2))) SS;13 14SS ss;15 16// CHECK: @{{.*}}test1{{.*}}ss{{.*}} = global %"struct.test1::S" zeroinitializer, align 217} // namespace test118 19namespace test2 {20struct __attribute__((__aligned__(2))) S {21 double x;22};23 24typedef struct S SS;25 26SS ss;27 28// CHECK: @{{.*}}test2{{.*}}ss{{.*}} = global %"struct.test2::S" zeroinitializer, align 829} // namespace test230