]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/dtrace-static-probes/main.c
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dtrace-static-probes / main.c
diff --git a/unit-tests/test-cases/dtrace-static-probes/main.c b/unit-tests/test-cases/dtrace-static-probes/main.c
new file mode 100644 (file)
index 0000000..bbce55f
--- /dev/null
@@ -0,0 +1,28 @@
+
+#include <stdio.h>
+
+typedef int weirdType;
+typedef int weirdType2;
+
+#include "foo.h"
+#include "bar.h"
+
+
+int deadwood()
+{
+       BAR_COUNT1(2);
+}
+
+
+int main() {
+       int a = 1;
+
+       while(a) {
+               FOO_COUNT1(1);
+               printf("test\n");
+               BAR_COUNT1(2);
+               sleep(1);
+       }
+
+       return 0;
+}