summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/multiple-include-pch.c
blob: 1e07b4f5ebce614ad44ca24dac1588c3e5db1c19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -emit-pch -o %t1.pch %s
// RUN: %clang_cc1 -emit-pch -o %t2.pch %s
// RUN: %clang_cc1 %s -include-pch %t1.pch -include-pch %t2.pch -verify

#ifndef HEADER
#define HEADER

extern int x;

#else

#warning parsed this
// expected-warning@-1 {{parsed this}}
int foo(void) {
  return x;
}

#endif