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