Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/native/v2/fsmain.c # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / native / v2 / fsmain.c` 20 lines ยท 591 bytes Raw Blame History 1 /* Hosted driver for fsuse.c (tests/native/v2/run.sh): runs fs_check, then a refused call through the 2 * out-of-line API, which must abort (SIGABRT) as the inline wrappers do. */ 3 #include "omega_api_decl.h" 4 #include 5 #include 6 7 int fs_check(void); 8 9 int main(int argc, char **argv) 10 { 11 if (argc > 1 && strcmp(argv[1], "refuse") == 0) { 12 uint8_t s8[8]; 13 swap8(s8, 7, s8); /* trap 3: abort */ 14 printf("not aborted\n"); 15 return 0; 16 } 17 int bad = fs_check(); 18 printf("%s fs_check %d\n", bad ? "FAIL" : "PASS", bad); 19 return bad != 0; 20 }