summaryrefslogtreecommitdiffstats
path: root/test/Frontend/rewrite-includes-invalid-hasinclude.c
blob: e32d6ad8a3ed9dbec174485ec5b873b96ff902ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -E -frewrite-includes -DFIRST -I %S/Inputs %s -o - | FileCheck -strict-whitespace %s

#if __has_include bar.h
#endif

#if __has_include(bar.h)
#endif

#if __has_include(<bar.h)
#endif

// CHECK: #if __has_include bar.h
// CHECK: #endif
// CHECK: #if __has_include(bar.h)
// CHECK: #endif
// CHECK: #if __has_include(<bar.h)
// CHECK: #endif
OpenPOWER on IntegriCloud