Files
clang-p2996/cross-project-tests/debuginfo-tests/dexter-tests/namespace.cpp
Shubham Sandeep Rastogi e6cc7b723f [Dexter] Fix test failures on greendragon (#66299)
The issue with these test failures is that the dSYM was not being found
by lldb, which is why setting breakpoints was failing and lldb quit
without performing any steps. This change copies the dSYM to the same
temp directory that the executable is copied to.
2023-09-14 09:28:47 -07:00

25 lines
486 B
C++

// Purpose:
// Ensure that the debug information for a global variable includes
// namespace information.
// REQUIRES: lldb
// UNSUPPORTED: system-windows
// RUN: %clang -g -O0 %s -o %t
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --binary %t --debugger 'lldb' -v -- %s
#include <stdio.h>
namespace monkey {
const int ape = 32;
}
int main() {
printf("hello %d\n", monkey::ape); // DexLabel('main')
return 0;
}
// DexExpectWatchValue('monkey::ape', 32, on_line=ref('main'))