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