25 lines · cpp
1// Purpose:2// Ensure that the debug information for a global variable includes3// namespace information.4 5// REQUIRES: lldb6// UNSUPPORTED: system-windows7 8// RUN: %clang++ -g -O0 %s -o %t9// RUN: %dexter --fail-lt 1.0 -w \10// RUN: --binary %t %dexter_lldb_args -v -- %s11 12#include <stdio.h>13 14namespace monkey {15const int ape = 32;16}17 18int main() {19 printf("hello %d\n", monkey::ape); // DexLabel('main')20 return 0;21}22 23// DexExpectWatchValue('monkey::ape', 32, on_line=ref('main'))24 25