1## Test that CHECK lines are generated as expected without --check-attributes
2# RUN: cp %S/Inputs/check-attributes.cpp %t.cpp && %update_cc_test_checks %t.cpp
3# RUN: diff -u %S/Inputs/check-attributes.cpp.plain.expected %t.cpp
4## Test with --check-attributes flag.
5# RUN: cp %S/Inputs/check-attributes.cpp %t.cpp && %update_cc_test_checks %t.cpp --check-attributes
6# RUN: diff -u %S/Inputs/check-attributes.cpp.funcattrs.expected %t.cpp
7## Check that re-running update_cc_test_checks doesn't change the output
8# RUN: %update_cc_test_checks %t.cpp
9# RUN: diff -u %S/Inputs/check-attributes.cpp.funcattrs.expected %t.cpp
10