Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / utils / update_cc_test_checks / global-value-regex.test
blob33103e101794d1d3cf81fce7043c87e4126a3f70
1 RUN: rm -rf %t && mkdir %t
3 # Check --global-value-regex.
4 RUN: cp %S/Inputs/global-value-regex.c %t/test.c
5 RUN: %update_cc_test_checks %t/test.c --check-globals \
6 RUN:   --global-value-regex "foo\.."
7 RUN: diff -u %S/Inputs/global-value-regex.c.expected %t/test.c
9 # Check that the generated directives actually work correctly.
10 RUN: cp %S/Inputs/lit.cfg.example %t/lit.cfg
11 # Show lit failures while avoiding confusing FileCheck input dump nesting.
12 RUN: %lit %t
13 # Lit was successful.  Sanity-check the results with deterministic test order.
14 RUN: rm %t/.lit_test_times.txt
15 RUN: %lit %t 2>&1 | FileCheck %s
17 CHECK: Testing: 1 tests
18 CHECK: PASS: {{.*}} test.c