summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter-tests/ctor.cpp
blob: dee587b08a1053581d9f943d3f64d50c8ac4954e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// REQUIRES: lldb
// UNSUPPORTED: system-windows
//
// RUN: %dexter --fail-lt 1.0 -w \
// RUN:     --builder 'clang' --debugger 'lldb' --cflags "-O0 -glldb" -- %s

class A {
public:
	A() : zero(0), data(42) { // DexLabel('ctor_start')
	}
private:
	int zero;
	int data;
};

int main() {
	A a;
	return 0;
}


/*
DexExpectProgramState({
	'frames': [
		{
			'location': {
				'lineno': 'ctor_start'
			},
			'watches': {
				'*this': {'is_irretrievable': False}
			}
		}
	]
})
*/

OpenPOWER on IntegriCloud