mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
both deferred_globals.cpp namespace.cpp require lldb in order to run and will fail if it's not available. add the required lines to the top of the tests.
25 lines
488 B
C++
25 lines
488 B
C++
// Purpose:
|
|
// Ensure that the debug information for a global variable includes
|
|
// namespace information.
|
|
|
|
// REQUIRES: lldb
|
|
// UNSUPPORTED: system-windows
|
|
|
|
// RUN: %dexter --fail-lt 1.0 -w \
|
|
// RUN: --builder 'clang' --debugger 'lldb' \
|
|
// RUN: --cflags "-g -O0" -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='main')
|
|
|