aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/rewrite-includes-invalid-hasinclude.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/rewrite-includes-invalid-hasinclude.c')
-rw-r--r--test/Frontend/rewrite-includes-invalid-hasinclude.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Frontend/rewrite-includes-invalid-hasinclude.c b/test/Frontend/rewrite-includes-invalid-hasinclude.c
new file mode 100644
index 0000000000..e32d6ad8a3
--- /dev/null
+++ b/test/Frontend/rewrite-includes-invalid-hasinclude.c
@@ -0,0 +1,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