]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/dtrace-static-probes/main.c
ld64-241.9.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dtrace-static-probes / main.c
index bbce55fcc103971f4a88bab54b51c72b33d2f961..79ce4ebbca68a5924b64def1409addba5e1a4ace 100644 (file)
@@ -10,7 +10,9 @@ typedef int weirdType2;
 
 int deadwood()
 {
-       BAR_COUNT1(2);
+       if ( BAR_COUNT1_ENABLED() )
+               BAR_COUNT1(2);
+       return 0;
 }
 
 
@@ -18,9 +20,11 @@ int main() {
        int a = 1;
 
        while(a) {
-               FOO_COUNT1(1);
+               if ( FOO_COUNT1_ENABLED() )
+                       FOO_COUNT1(1);
                printf("test\n");
-               BAR_COUNT1(2);
+               if ( BAR_COUNT1_ENABLED() )
+                       BAR_COUNT1(2);
                sleep(1);
        }