mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-15 22:46:32 +00:00

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.
45 lines
646 B
C++
45 lines
646 B
C++
// 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' -- %s
|
|
// Radar 8945514
|
|
|
|
class SVal {
|
|
public:
|
|
~SVal() {}
|
|
const void* Data;
|
|
unsigned Kind;
|
|
};
|
|
|
|
void bar(SVal &v) {}
|
|
class A {
|
|
public:
|
|
void foo(SVal v) { bar(v); } // DexLabel('foo')
|
|
};
|
|
|
|
int main() {
|
|
SVal v;
|
|
v.Data = 0;
|
|
v.Kind = 2142;
|
|
A a;
|
|
a.foo(v);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
DexExpectProgramState({
|
|
'frames': [
|
|
{
|
|
'location': { 'lineno': ref('foo') },
|
|
'watches': {
|
|
'v.Data == 0': 'true',
|
|
'v.Kind': '2142'
|
|
}
|
|
}
|
|
]
|
|
})
|
|
*/
|
|
|