29 lines · plain
1# This test checks that with --output-style=GNU the tool does not print an empty2# line after the report for an address. The current behavior is preserved for3# --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=LLVM7 8RUN: llvm-symbolizer --output-style=LLVM -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \9RUN: | FileCheck %s --check-prefix=LLVM10 11RUN: llvm-addr2line --output-style=LLVM -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \12RUN: | FileCheck %s --check-prefix=LLVM13 14LLVM: x.c:14:015LLVM-EMPTY:16LLVM-NEXT: ??17 18RUN: llvm-symbolizer --output-style=GNU -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \19RUN: | FileCheck %s --check-prefix=GNU20 21RUN: llvm-addr2line -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \22RUN: | FileCheck %s --check-prefix=GNU23 24RUN: llvm-addr2line --output-style=GNU -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \25RUN: | FileCheck %s --check-prefix=GNU26 27GNU: x.c:1428GNU-NEXT: ??29