Files
clang-p2996/cross-project-tests/debuginfo-tests/dexter-tests/namespace.cpp
Stephen Tozer 45a40c1639 Re-reapply "[Dexter] Remove builder from Dexter"
This patch makes a further attempt to fix the tests broken by the
previous revision by ensuring that the command line for the modified
Dexter tests use -std=gnu++11, in keeping with the old build script.

This reverts commit 5647f2908d.
2023-09-06 15:06:07 +01: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'))