xref: /aosp_15_r20/external/clang/test/PCH/preamble.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Check that using the preamble option actually skips the preamble.
2*67e74705SXin Li 
3*67e74705SXin Li // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/preamble.h -DFOO=f
4*67e74705SXin Li // RUN: not %clang_cc1 -include-pch %t -preamble-bytes=317,1 -DFOO=f -verify %s -emit-llvm -o - | FileCheck %s
5*67e74705SXin Li 
6*67e74705SXin Li float f(int); // Not an error, because we skip this via the preamble!
7*67e74705SXin Li 
8*67e74705SXin Li 
9*67e74705SXin Li 
10*67e74705SXin Li 
11*67e74705SXin Li 
12*67e74705SXin Li 
13*67e74705SXin Li 
14*67e74705SXin Li 
15*67e74705SXin Li 
16*67e74705SXin Li 
17*67e74705SXin Li 
18*67e74705SXin Li 
g(int x)19*67e74705SXin Li int g(int x) {
20*67e74705SXin Li   return FOO(x);
21*67e74705SXin Li }
22*67e74705SXin Li 
23*67e74705SXin Li // CHECK: call {{.*}} @f(
24