-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1523 from ltratt/unbreak_ykd_opt_zero
Unbreak `YKD_OPT=0`.
- Loading branch information
Showing
6 changed files
with
192 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Run-time: | ||
// env-var: YKD_OPT=0 | ||
// env-var: YKD_SERIALISE_COMPILATION=1 | ||
// stdout: | ||
// 10 | ||
// 9 | ||
// 8 | ||
// 7 | ||
// 7: 6 | ||
// 7: 5 | ||
// 7: 4 | ||
// 7: 4: 3 | ||
// 7: 4: 2 | ||
// 7: 4: 1 | ||
|
||
|
||
// Check that basic trace compilation works. | ||
|
||
#include <assert.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <yk.h> | ||
#include <yk_testing.h> | ||
|
||
int main(int argc, char **argv) { | ||
YkMT *mt = yk_mt_new(NULL); | ||
yk_mt_hot_threshold_set(mt, 0); | ||
yk_mt_sidetrace_threshold_set(mt, 1); | ||
YkLocation loc = yk_location_new(); | ||
|
||
int i = 10; | ||
NOOPT_VAL(loc); | ||
NOOPT_VAL(i); | ||
while (i > 0) { | ||
yk_mt_control_point(mt, &loc); | ||
if (i < 7) | ||
printf("7: "); | ||
if (i < 4) | ||
printf("4: "); | ||
printf("%d\n", i); | ||
i--; | ||
} | ||
yk_location_drop(loc); | ||
yk_mt_shutdown(mt); | ||
return (EXIT_SUCCESS); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.