13ce0e92fSAlex Richardson## Test that CHECK lines are generated before the definion and not the declaration 23ce0e92fSAlex Richardson 33ce0e92fSAlex Richardson# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks %t.cpp 43ce0e92fSAlex Richardson# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp 5*e150d2caSAlex Richardson## Check that it also works with the --llvm-bin flag instead of --clang 6*e150d2caSAlex Richardson# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks --clang='' --llvm-bin=%clang_tools_dir %t.cpp 7*e150d2caSAlex Richardson# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp 83ce0e92fSAlex Richardson## Check that re-running update_cc_test_checks doesn't change the output 93ce0e92fSAlex Richardson# RUN: %update_cc_test_checks %t.cpp 103ce0e92fSAlex Richardson# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp 11