2020-06-18 22:11:08 +08:00
|
|
|
## Test that CHECK lines are generated before the definion and not the declaration
|
|
|
|
|
|
|
|
# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks %t.cpp
|
|
|
|
# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp
|
2020-08-06 15:25:10 +08:00
|
|
|
## Check that it also works with the --llvm-bin flag instead of --clang
|
|
|
|
# RUN: cp %S/Inputs/basic-cplusplus.cpp %t.cpp && %update_cc_test_checks --clang='' --llvm-bin=%clang_tools_dir %t.cpp
|
|
|
|
# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp
|
2020-06-18 22:11:08 +08:00
|
|
|
## Check that re-running update_cc_test_checks doesn't change the output
|
|
|
|
# RUN: %update_cc_test_checks %t.cpp
|
|
|
|
# RUN: diff -u %S/Inputs/basic-cplusplus.cpp.expected %t.cpp
|