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