Clang Project

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