Mercurial > hg > CbC > CbC_llvm
diff clang/test/FixIt/fixit-include.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/FixIt/fixit-include.c Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s +// RUN: mkdir -p %t-dir +// RUN: cp %s %t-dir/fixit-include.c +// RUN: cp %S/fixit-include.h %t-dir/fixit-include.h +// RUN: not %clang_cc1 -fsyntax-only -fixit %t-dir/fixit-include.c +// RUN: %clang_cc1 -Wall -pedantic %t-dir/fixit-include.c +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s + +#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}} +// CHECK: fix-it:{{.*}}:{9:10-9:27} + +#pragma does_not_exist // expected-warning {{unknown pragma ignored}} + +int main( void ) { + return 0; +}