]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lit/SymbolFile/DWARF/debug-names-compressed.cpp
Vendor import of lldb trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / lit / SymbolFile / DWARF / debug-names-compressed.cpp
1 // Test for a bug where we crashed while processing a compressed debug_names
2 // section (use after free).
3
4 // REQUIRES: lld, zlib
5
6 // RUN: %clang -g -c -o %t.o --target=x86_64-pc-linux -mllvm -accel-tables=Dwarf %s
7 // RUN: ld.lld %t.o -o %t --compress-debug-sections=zlib
8 // RUN: lldb-test symbols --find=variable --name=foo %t | FileCheck %s
9
10 // CHECK: Found 1 variables:
11 int foo;
12 // ONE-DAG: name = "foo", type = {{.*}} (int), {{.*}} decl = debug-names-compressed.cpp:[[@LINE-1]]
13
14 extern "C" void _start() {}