summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/SymbolFile/DWARF/gnu-style-compression.cpp
blob: 9dc87303ba9fda64846efabe7017bd88c6218ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// REQUIRES: zlib

// RUN: %clang %s -target x86_64-pc-linux -g -gsplit-dwarf -c -o %t \
// RUN:   -Wa,--compress-debug-sections=zlib-gnu
// RUN: %lldb %t -o "target var s a" -b | FileCheck %s

// CHECK: (const short) s = 47
// CHECK: (const A) a = (a = 42)

struct A {
  long a = 42;
};
extern constexpr short s = 47;
extern constexpr A a{};
OpenPOWER on IntegriCloud