1 /*
2 * Copyright (c) 2014-2020 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8 #include "tests.h"
9 #include <unistd.h>
10 #include "stack-fcall.h"
11
12 #ifndef ATTACH_MODE
13 # define ATTACH_MODE 0
14 #endif
15
16 int
17 main(int ac, char **av)
18 {
19 #if ATTACH_MODE
20 /* sleep a bit to let the tracer time to catch up */
21 sleep(1);
22 #endif
23
24 for (;;)
25 ac += f0(ac, (unsigned long) (void *) main);
26 }