1## Basic test checking that update_cc_test_checks.py works as expected for 2## functions with mangled names 3# RUN: cp -f %S/Inputs/mangled_names.c %t.c && %update_cc_test_checks -v %t.c 4# RUN: diff -u %t.c %S/Inputs/mangled_names.c.expected 5## Check that running the script again does not change the result: 6# RUN: %update_cc_test_checks -v %t.c 7# RUN: diff -u %t.c %S/Inputs/mangled_names.c.expected 8## Also try the --function-signature flag 9# RUN: %update_cc_test_checks %t.c --function-signature 10# RUN: diff -u %t.c %S/Inputs/mangled_names.c.funcsig.expected 11## Running it again should implicitly add the function-signature flag due to UTC_ARGS: 12# RUN: %update_cc_test_checks %t.c 13# RUN: diff -u %t.c %S/Inputs/mangled_names.c.funcsig.expected 14## Verify that running without the --function-signature flag removes the -SAME: lines: 15## We have to remove the UTC_ARGS comment first: 16# RUN: grep -v UTC_ARGS %t.c > %t-no-args.c 17# RUN: %update_cc_test_checks %t-no-args.c 18# RUN: diff -u %t-no-args.c %S/Inputs/mangled_names.c.expected 19