my first time really working with #pragma and for some reason I don't get the same output as the ones posted online, the functions don't print out, I use GCC v5.3 and clang v. 3.7. Here's the code
#include<stdio.h>
void School();
void College() ;
#pragma startup School 105
#pragma startup College
#pragma exit College
#pragma exit School 105
void main(){
printf("I am in main\n");
}
void School(){
printf("I am in School\n");
}
void College(){
printf("I am in College\n");
}
and I compile with "gcc file.c" and "clang file.c". The output I get is "I am in main"