1This test checks that with --output-style=GNU the tool does not print an empty
2line after the report for an address. The current behavior is preserved for
3--output-style=LLVM or if the option is omitted.
4
5RUN: llvm-symbolizer -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
6RUN:   | FileCheck %s --check-prefix=LLVM
7
8RUN: llvm-symbolizer --output-style=LLVM -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
9RUN:   | FileCheck %s --check-prefix=LLVM
10
11RUN: llvm-symbolizer --output-style=GNU -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
12RUN:   | FileCheck %s --check-prefix=GNU
13
14RUN: llvm-addr2line -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
15RUN:   | FileCheck %s --check-prefix=GNU
16
17RUN: llvm-addr2line --output-style=GNU -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
18RUN:   | FileCheck %s --check-prefix=GNU
19
20RUN: llvm-addr2line --output-style=LLVM -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
21RUN:   | FileCheck %s --check-prefix=LLVM
22
23LLVM: x.c:14:0
24LLVM-EMPTY:
25LLVM-NEXT: some text2
26
27GNU: x.c:14
28GNU-NEXT: some text2
29