[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Layout / aix-power-alignment-typedef-2.cpp
blobb814be9c06cffdb2b7b4bb80de6b27d6fbafb5d4
1 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -S -emit-llvm -x c++ < %s | \
2 // RUN: FileCheck %s
4 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -S -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