mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 00:26:43 +00:00

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 5647f2908de90fe07b0805e988cd2e91a1751928.
31 lines
853 B
C++
31 lines
853 B
C++
// REQUIRES: system-windows
|
|
//
|
|
// RUN: %clang_cl /Z7 /Zi %s -o %t
|
|
// RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
|
|
|
|
// Check that global constants have debug info.
|
|
|
|
const float TestPi = 3.14;
|
|
struct S {
|
|
static const char TestCharA = 'a';
|
|
};
|
|
enum TestEnum : int {
|
|
ENUM_POS = 2147000000,
|
|
ENUM_NEG = -2147000000,
|
|
};
|
|
void useConst(int) {}
|
|
int main() {
|
|
useConst(TestPi);
|
|
useConst(S::TestCharA);
|
|
useConst(ENUM_NEG); // DexLabel('stop')
|
|
return 0;
|
|
}
|
|
|
|
// DexExpectWatchValue('TestPi', 3.140000104904175, on_line=ref('stop'))
|
|
// DexExpectWatchValue('S::TestCharA', 97, on_line=ref('stop'))
|
|
// DexExpectWatchValue('ENUM_NEG', -2147000000, on_line=ref('stop'))
|
|
/* DexExpectProgramState({'frames': [{
|
|
'location': {'lineno' : ref('stop')},
|
|
'watches': {'ENUM_POS' : {'is_irretrievable': True}}
|
|
}]}) */
|