sstefan1 937bad3594 [Utils] Check function attributes in update_test_checks
Summary:
This introduces new flag to the update_test_checks and
update_cc_test_checks that allows for function attributes
to be checked in a check-line. If the flag is not set,
the behavior should remain the same.

Reviewers: jdoerfert

Subscribers: arichardson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83629
2020-07-19 20:07:24 +02:00

10 lines
570 B
Plaintext

## check_attrs test checking that update_test_checks.py works correctly
# RUN: cp -f %S/Inputs/check_attrs.ll %t.ll && %update_test_checks %t.ll --function-signature
# RUN: diff -u %t.ll %S/Inputs/check_attrs.ll.plain.expected
## Also try the --check-attributes flag
# RUN: %update_test_checks %t.ll --check-attributes --function-signature
# RUN: diff -u %t.ll %S/Inputs/check_attrs.ll.funcattrs.expected
## Check that running the script again does not change the result:
# RUN: %update_test_checks %t.ll
# RUN: diff -u %t.ll %S/Inputs/check_attrs.ll.funcattrs.expected