1 | // Test this without pch. |
---|---|
2 | // RUN: %clang_cc1 -include %s -emit-llvm -o - %s | FileCheck %s |
3 | |
4 | // Test with pch. |
5 | // RUN: %clang_cc1 -emit-pch -o %t %s |
6 | // RUN: %clang_cc1 -include-pch %t -emit-llvm -o - %s | FileCheck %s |
7 | |
8 | #ifndef HEADER |
9 | #define HEADER |
10 | |
11 | struct Bar |
12 | { |
13 | // CHECK: align 512 |
14 | int buffer[123] __attribute__((__aligned__(512))); |
15 | }; |
16 | |
17 | #else |
18 | |
19 | void foo() { |
20 | struct Bar bar; |
21 | } |
22 | |
23 | #endif |
24 |