Chandler Carruth | 1687e0e | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s |
Kuba Mracek | 5b57633 | 2017-08-15 19:47:06 +0000 | [diff] [blame] | 2 | // RUN: mkdir -p %t-dir |
| 3 | // RUN: cp %s %t-dir/fixit-include.c |
| 4 | // RUN: cp %S/fixit-include.h %t-dir/fixit-include.h |
| 5 | // RUN: not %clang_cc1 -fsyntax-only -fixit %t-dir/fixit-include.c |
| 6 | // RUN: %clang_cc1 -Wall -pedantic %t-dir/fixit-include.c |
Rafael Espindola | 925213b | 2013-07-04 16:16:58 +0000 | [diff] [blame] | 7 | // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s |
Chandler Carruth | 1687e0e | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 8 | |
| 9 | #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}} |
Kuba Mracek | 5b57633 | 2017-08-15 19:47:06 +0000 | [diff] [blame] | 10 | // CHECK: fix-it:{{.*}}:{9:10-9:27} |
Chandler Carruth | 1687e0e | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 11 | |
| 12 | #pragma does_not_exist // expected-warning {{unknown pragma ignored}} |
| 13 | |
| 14 | int main( void ) { |
| 15 | return 0; |
| 16 | } |