1 // RUN: %clang_scs -D INCLUDE_RUNTIME %s -o %t 2 // RUN: %run %t 3 4 // RUN: %clang_scs %s -o %t 5 // RUN: not --crash %run %t 6 7 // Basic smoke test for the runtime 8 9 #include "libc_support.h" 10 11 #ifdef INCLUDE_RUNTIME 12 #include "minimal_runtime.h" 13 #else 14 #define scs_main main 15 #endif 16 17 int scs_main(void) { 18 scs_fputs_stdout("In main.\n"); 19 return 0; 20 } 21