Wooo passthrough and more cleanup! Remove 3rd pass!
This commit is contained in:
11
tests/c_passthrough_diff.krak
Normal file
11
tests/c_passthrough_diff.krak
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
#include <stdio.h>
|
||||
int diff = 7;
|
||||
"""
|
||||
|
||||
|void| print_it() {
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
printf("diff_file: %d\n", diff);
|
||||
"""
|
||||
}
|
||||
2
tests/test_c_passthrough.expected_results
Normal file
2
tests/test_c_passthrough.expected_results
Normal file
@@ -0,0 +1,2 @@
|
||||
same_file: 5
|
||||
diff_file: 7
|
||||
19
tests/test_c_passthrough.krak
Normal file
19
tests/test_c_passthrough.krak
Normal file
@@ -0,0 +1,19 @@
|
||||
import c_passthrough_diff
|
||||
|
||||
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
#include <stdio.h>
|
||||
int same = 5;
|
||||
"""
|
||||
|
||||
|int| main() {
|
||||
|
||||
__if_comp__ __C__ __simple_passthrough__ """
|
||||
printf("same_file: %d\n", same);
|
||||
"""
|
||||
c_passthrough_diff::print_it()
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user