1 // REQUIRES: lld 2 3 // RUN: %clang -target x86_64-pc-linux -gsplit-dwarf -g -c %s -o %t.o 4 // RUN: ld.lld %t.o -o %t 5 // RUN: llvm-dwp %t.dwo -o %t.dwp 6 // RUN: rm %t.dwo 7 // RUN: llvm-objcopy --only-keep-debug %t %t.debug 8 // RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t.debug %t 9 // RUN: %lldb %t -o "target variable a" -b | FileCheck %s 10 11 // CHECK: (A) a = (x = 47) 12 13 struct A { 14 int x = 47; 15 }; 16 A a; main()17int main() {} 18