xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/global_regex.test (revision dcd4d0a7904190350ec5b06f94e2edee13bd6434)
1# REQUIRES: x86-registered-target
2## Basic test checking that update_test_checks.py works correctly
3# RUN: cp -f %S/Inputs/global_regex.ll %t.ll && %update_test_checks %t.ll --check-globals --global-value-regex "OnlyFoo"
4# RUN: diff -u %t.ll %S/Inputs/global_regex.ll.expected
5## Verify that running without the --global-value-regex flag respects UTC_ARGS
6# RUN: %update_test_checks %t.ll
7# RUN: diff -u %t.ll %S/Inputs/global_regex.ll.expected
8