xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/pre-process.test (revision 9692811b264600b7fcb52a1f4fcf938d198567cb)
1## Test that update_test_checks.py can run pre-processing commands.
2# RUN: cp -f %S/Inputs/pre-process.ll %t.ll && %update_test_checks --function-signature %t.ll
3# RUN: diff -u %t.ll %S/Inputs/pre-process.ll.expected
4## Check that running the script again does not change the result:
5# RUN: %update_test_checks %t.ll
6# RUN: diff -u %t.ll %S/Inputs/pre-process.ll.expected
7