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
10 lines
619 B
Plaintext
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
|