brintos

brintos / llvm-project-archived public Read only

0
0
Text · 607 B · 53c3d3d Raw
18 lines · cpp
1// Test for a bug where we crashed while processing a compressed debug_names2// section (use after free).3 4// REQUIRES: lld, zlib5 6// RUN: %clangxx -c -o %t.o --target=x86_64-pc-linux -gdwarf-5 -gpubnames %s7// RUN: ld.lld %t.o -o %t --compress-debug-sections=zlib8// RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix NAMES9// RUN: lldb-test symbols --find=variable --name=foo %t | FileCheck %s10 11// NAMES: Name: .debug_names12 13// CHECK: Found 1 variables:14int foo;15// CHECK-DAG: name = "foo", type = {{.*}} (int), {{.*}} decl = debug-names-compressed.cpp:[[@LINE-1]]16 17extern "C" void _start() {}18