summaryrefslogtreecommitdiff
path: root/clang/test/PCH/attrs-PR8406.c
blob: 85225f5a9cf1dcdff80fee4fc87e87b7755227e0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Test this without pch.
// RUN: %clang_cc1 -include %s -emit-llvm -o - %s | FileCheck %s

// Test with pch.
// RUN: %clang_cc1 -emit-pch -o %t %s
// RUN: %clang_cc1 -include-pch %t -emit-llvm -o - %s | FileCheck %s

#ifndef HEADER
#define HEADER

struct Bar
{
  // CHECK: align 512
  int buffer[123] __attribute__((__aligned__(512)));
};

#else

void foo() {
  struct Bar bar;
}

#endif