1// Purpose:
2// Check that \DexExpectStepKind correctly counts 'FUNC_EXTERNAL' steps
3// for a trivial test. Expect one 'FUNC_EXTERNAL' per external call.
4//
5// UNSUPPORTED: system-darwin
6//
7// XFAIL:*
8// This fails right now on my linux and windows machine, needs examining as to
9// why.
10//
11// RUN: %dexter_regression_test_build %s -o %t
12// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
13// CHECK: func_external.cpp:
14
15#include <cstdlib>
16
17int func(int i){
18 return abs(x: i);
19}
20
21int main()
22{
23 func(i: 0);
24 func(i: 1);
25 return 0;
26}
27
28// DexExpectStepKind('FUNC_EXTERNAL', 2)
29

source code of cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/expect_step_kind/func_external.cpp