xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/rewrite-includes-invalid-hasinclude.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -E -frewrite-includes -DFIRST -I %S/Inputs %s -o - | FileCheck -strict-whitespace %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc #if __has_include bar.h
4*f4a2713aSLionel Sambuc #endif
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc #if __has_include(bar.h)
7*f4a2713aSLionel Sambuc #endif
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc #if __has_include(<bar.h)
10*f4a2713aSLionel Sambuc #endif
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc // CHECK: #if __has_include bar.h
13*f4a2713aSLionel Sambuc // CHECK: #endif
14*f4a2713aSLionel Sambuc // CHECK: #if __has_include(bar.h)
15*f4a2713aSLionel Sambuc // CHECK: #endif
16*f4a2713aSLionel Sambuc // CHECK: #if __has_include(<bar.h)
17*f4a2713aSLionel Sambuc // CHECK: #endif
18