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