summaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-include.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit-include.c')
-rw-r--r--test/FixIt/fixit-include.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/FixIt/fixit-include.c b/test/FixIt/fixit-include.c
new file mode 100644
index 000000000000..51bd9b0dfd50
--- /dev/null
+++ b/test/FixIt/fixit-include.c
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
+// RUN: cp %s %t
+// RUN: cp %S/fixit-include.h %T
+// RUN: not %clang_cc1 -fsyntax-only -fixit %t
+// RUN: %clang_cc1 -Wall -pedantic %t
+
+#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}}
+
+#pragma does_not_exist // expected-warning {{unknown pragma ignored}}
+
+int main( void ) {
+ return 0;
+}