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
func(int i)17 int func(int i){
18 return abs(i);
19 }
20
main()21 int main()
22 {
23 func(0);
24 func(1);
25 return 0;
26 }
27
28 // DexExpectStepKind('FUNC_EXTERNAL', 2)
29