summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/rewrite-includes-invalid-hasinclude.c
blob: 334519a4b02d0edf157198315cbddc8f2603d091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: not %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