File tree 2 files changed +30
-0
lines changed 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ set(tests_c
2
2
arr_test0.c
3
3
arr_test1.c
4
4
clopts_test0.c
5
+ cext_test0.c
5
6
err_test0.c
6
7
err_test1.c
7
8
fmt_test0.c
@@ -55,6 +56,14 @@ foreach(fn
55
56
)
56
57
endforeach ()
57
58
59
+ add_executable (cext_test0_c23 cext_test0.c)
60
+ target_link_libraries (cext_test0_c23 csnip)
61
+ set_property (TARGET cext_test0_c23 PROPERTY C_STANDARD 23)
62
+ add_test (
63
+ NAME cext_test0_c23
64
+ COMMAND $<TARGET_FILE:cext_test0_c23>
65
+ )
66
+
58
67
set_property (TARGET clopts_test0 PROPERTY C_STANDARD 11)
59
68
set_property (TARGET limits_test PROPERTY C_STANDARD 11)
60
69
set_property (TARGET runif_getf_test PROPERTY C_STANDARD 11)
Original file line number Diff line number Diff line change
1
+ #include <stdio.h>
2
+
3
+ #include <csnip/cext.h>
4
+
5
+ csnip_cext_unused static int f (void )
6
+ {
7
+ return 0 ;
8
+ }
9
+
10
+ csnip_cext_export void g (void );
11
+
12
+ void g (void )
13
+ {
14
+ puts ("Exported function" );
15
+ }
16
+
17
+ int main (void )
18
+ {
19
+ puts ("No runtime tests here -> pass." );
20
+ return 0 ;
21
+ }
You can’t perform that action at this time.
0 commit comments