Clang Project

clang_source_code/test/PCH/Inputs/pch-hdrstop-use.cpp
1#include "Inputs/pch-through1.h"
2static int bar() { return 42; }
3#include "Inputs/pch-through2.h"
4int pch();
5#pragma hdrstop
6
7//expected-no-diagnostics
8//CHECK-NOT: FunctionDecl{{.*}}other
9//CHECK: FunctionDecl{{.*}}main
10int main()
11{
12  return pch() - 42*42 + bar() - 42 + through1(0) + through2(33);
13}
14