Stephen Tozer b8fc288c46
[Dexter] Replace clang with clang++ in various cross project tests (#65987)
This patch replaces invocations of clang with clang++ for a set of
c++ files in the dexter cross-project tests. As a small additional change,
this patch removes -lstdc++ from a test that did not appear to require it.
2025-04-03 15:37:43 +01:00

29 lines
629 B
C++

// Purpose:
// Ensure that debug information for a local variable does not hide
// a global definition that has the same name.
// REQUIRES: lldb
// UNSUPPORTED: system-windows
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --binary %t --debugger 'lldb' -v -- %s
const int d = 100;
extern int foo();
int main() {
const int d = 4;
const float e = 4; // DexLabel("main")
const char *f = "Woopy";
return d + foo();
}
int foo() {
return d; // DexLabel("foo")
}
// DexExpectWatchValue('d', '4', on_line=ref('main'))
// DexExpectWatchValue('d', '100', on_line=ref('foo'))