11 lines · plain
1## Test that CHECK lines are generated before the definion and not the declaration2 3# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks %t.cpp4# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp5## Check that it also works with the --llvm-bin flag instead of --clang6# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks --clang='' --llvm-bin=%clang_tools_dir %t.cpp7# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp8## Check that re-running update_cc_test_checks doesn't change the output9# RUN: %update_cc_test_checks %t.cpp10# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp11