xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-include.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
2*f4a2713aSLionel Sambuc // RUN: cp %s %t
3*f4a2713aSLionel Sambuc // RUN: cp %S/fixit-include.h %T
4*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only -fixit %t
5*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wall -pedantic %t
6*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}}
9*f4a2713aSLionel Sambuc // CHECK: fix-it:{{.*}}:{8:10-8:27}
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc #pragma does_not_exist // expected-warning {{unknown pragma ignored}}
12*f4a2713aSLionel Sambuc 
main(void)13*f4a2713aSLionel Sambuc int main( void ) {
14*f4a2713aSLionel Sambuc   return 0;
15*f4a2713aSLionel Sambuc }
16