[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / attrs-PR8406.c
blob5e16a74ee21f944e03adf229ee785893defcd0fb
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %s -emit-llvm -o - %s | FileCheck %s
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
8 #ifndef HEADER
9 #define HEADER
11 struct Bar
13 // CHECK: align 512
14 int buffer[123] __attribute__((__aligned__(512)));
17 #else
19 void foo(void) {
20 struct Bar bar;
23 #endif