[Instrumentation] Fix a warning
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / discriminator.test
blob1cc398732dd2f2c349e159a1b471637657576525
1 # Check that llvm-symbolizer prints line-table discriminators properly.
3 RUN: llvm-symbolizer --output-style=GNU -f --obj=%p/Inputs/discrim 0x400590 0x400575 \
4 RUN:   | FileCheck %s --check-prefix=GNU --match-full-lines
5 RUN: llvm-symbolizer --output-style=LLVM -f --obj=%p/Inputs/discrim 0x400590 0x400575 \
6 RUN:   | FileCheck %s --check-prefix=LLVM --match-full-lines
8 GNU: foo
9 GNU: /tmp{{[\\/]}}discrim.c:5
10 GNU: main
11 GNU: /tmp{{[\\/]}}discrim.c:10
12 GNU: foo
13 GNU: /tmp{{[\\/]}}discrim.c:5 (discriminator 2)
15 LLVM: foo
16 LLVM: /tmp{{[\\/]}}discrim.c:5:7
17 LLVM: main
18 LLVM: /tmp{{[\\/]}}discrim.c:10:0
19 LLVM: foo
20 LLVM: /tmp{{[\\/]}}discrim.c:5:17