xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/global_preserve_name.test (revision da28c3309413475146fdeb9194e44b7a63b7484e)
1## Basic test checking that we capture existing lines matching global variable names
2# RUN: cp -f %S/Inputs/global_preserve_name.ll %t.ll && %update_test_checks %t.ll --check-globals --preserve-names
3# RUN: diff -u %t.ll %S/Inputs/global_preserve_name.ll.expected
4## Verify that running without the --global-value-regex flag respects UTC_ARGS, and that the output is a fixed point.
5# RUN: %update_test_checks %t.ll
6# RUN: diff -u %t.ll %S/Inputs/global_preserve_name.ll.expected
7
8