]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/dtrace-static-probes/main.c
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dtrace-static-probes / main.c
CommitLineData
a61fdf0a
A
1
2#include <stdio.h>
3
4typedef int weirdType;
5typedef int weirdType2;
6
7#include "foo.h"
8#include "bar.h"
9
10
11int deadwood()
12{
55e3d2f6
A
13 if ( BAR_COUNT1_ENABLED() )
14 BAR_COUNT1(2);
2f2f92e4 15 return 0;
a61fdf0a
A
16}
17
18
19int main() {
20 int a = 1;
21
22 while(a) {
55e3d2f6
A
23 if ( FOO_COUNT1_ENABLED() )
24 FOO_COUNT1(1);
a61fdf0a 25 printf("test\n");
55e3d2f6
A
26 if ( BAR_COUNT1_ENABLED() )
27 BAR_COUNT1(2);
a61fdf0a
A
28 sleep(1);
29 }
30
31 return 0;
32}