Make test more lenient for custom clang version strings
[llvm-project.git] / clang-tools-extra / test / clang-include-fixer / multiple_fixes.cpp
blob791417a3682a57f2b2db4db7009abafa1d187b01
1 // REQUIRES: shell
2 // RUN: sed -e 's#//.*$##' %s > %t.cpp
3 // RUN: mkdir -p %T/clang-include-fixer/multiple-fixes
4 // RUN: echo 'foo f;' > %T/clang-include-fixer/multiple-fixes/foo.cpp
5 // RUN: echo 'bar b;' > %T/clang-include-fixer/multiple-fixes/bar.cpp
6 // RUN: clang-include-fixer -db=fixed -input='foo= "foo.h";bar= "bar.h"' %T/clang-include-fixer/multiple-fixes/*.cpp --
7 // RUN: FileCheck -input-file=%T/clang-include-fixer/multiple-fixes/bar.cpp %s -check-prefix=CHECK-BAR
8 // RUN: FileCheck -input-file=%T/clang-include-fixer/multiple-fixes/foo.cpp %s -check-prefix=CHECK-FOO
9 //
10 // CHECK-FOO: #include "foo.h"
11 // CHECK-FOO: foo f;
12 // CHECK-BAR: #include "bar.h"
13 // CHECK-BAR: bar b;