Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/multiple-include-pch.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: %clang_cc1 -emit-pch -o %t1.pch %s | |
2 // RUN: %clang_cc1 -emit-pch -o %t2.pch %s | |
3 // RUN: %clang_cc1 %s -include-pch %t1.pch -include-pch %t2.pch -verify | |
4 | |
5 #ifndef HEADER | |
6 #define HEADER | |
7 | |
8 extern int x; | |
9 | |
10 #else | |
11 | |
12 #warning parsed this | |
13 // expected-warning@-1 {{parsed this}} | |
14 int foo() { | |
15 return x; | |
16 } | |
17 | |
18 #endif |