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