xref: /llvm-project/clang-tools-extra/test/clang-include-fixer/exit_on_fatal.cpp (revision 43356f56bd2ede05c70db537e3f8b50a31444487)
1 // RUN: sed -e 's#//.*$##' %s > %t.cpp
2 // RUN: not clang-include-fixer -db=fixed -input='foo= "foo.h"' %t.cpp --
3 // RUN: FileCheck %s -input-file=%t.cpp
4 
5 // CHECK-NOT: #include
6 // CHECK: #include "doesnotexist.h"
7 // CHECK-NEXT: foo f;
8 
9 #include "doesnotexist.h"
10 foo f;
11