Chandler Carruth | 0ccd98d | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s |
| 2 | // RUN: cp %s %t |
| 3 | // RUN: cp %S/fixit-include.h %T |
| 4 | // RUN: not %clang_cc1 -fsyntax-only -fixit %t |
| 5 | // RUN: %clang_cc1 -Wall -pedantic %t |
Argyrios Kyrtzidis | da31359 | 2012-09-27 01:42:07 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s |
Chandler Carruth | 0ccd98d | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 7 | |
| 8 | #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}} |
Argyrios Kyrtzidis | da31359 | 2012-09-27 01:42:07 +0000 | [diff] [blame] | 9 | // CHECK: fix-it:{{.*}}:{8:10-8:27} |
Chandler Carruth | 0ccd98d | 2012-07-20 00:49:51 +0000 | [diff] [blame] | 10 | |
| 11 | #pragma does_not_exist // expected-warning {{unknown pragma ignored}} |
| 12 | |
| 13 | int main( void ) { |
| 14 | return 0; |
| 15 | } |