Files
clang-p2996/clang/test/utils/update_cc_test_checks/check_attrs.test
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
619 B
Plaintext

## Test that CHECK lines are generated as expected without --check-attributes
# RUN: cp %S/Inputs/check-attributes.cpp %t.cpp && %update_cc_test_checks %t.cpp
# RUN: diff -u %S/Inputs/check-attributes.cpp.plain.expected %t.cpp
## Test with --check-attributes flag.
# RUN: cp %S/Inputs/check-attributes.cpp %t.cpp && %update_cc_test_checks %t.cpp --check-attributes
# RUN: diff -u %S/Inputs/check-attributes.cpp.funcattrs.expected %t.cpp
## 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/check-attributes.cpp.funcattrs.expected %t.cpp