| 1 | module Configurator = Configurator.V1 |
| 2 | |
| 3 | let () = |
| 4 | Configurator.main ~name:"c_test" (fun t -> |
| 5 | let c_result = |
| 6 | Configurator.c_test t {c| |
| 7 | #include <stdio.h> |
| 8 | int main(void) |
| 9 | { |
| 10 | printf("Hello, World!"); |
| 11 | return 0; |
| 12 | } |
| 13 | |c} in |
| 14 | assert c_result; |
| 15 | print_endline "Successfully compiled c program" |
| 16 | ) |