blob: d5ab3ffbd03673f35539837d0373b218a969f523 (
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
|
// Purpose:
// Check that \DexExpectStepKind correctly counts 'FUNC' steps for a
// trivial test. Expect one 'FUNC' per call to a function which is defined
// in one of the source files in the test directory.
//
// REQUIRES: system-linux, lldb
//
// RUN: %dexter_base test --fail-lt 1.0 -w \
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
// RUN: | FileCheck %s
// CHECK: func.cpp:
int func(int i) {
return i;
}
int main()
{
func(0);
func(1);
return 0;
}
// main, func, func
// DexExpectStepKind('FUNC', 3)
|