diff --git a/construct_destruct.c b/construct_destruct.c index 6914a2c..47b9745 100644 --- a/construct_destruct.c +++ b/construct_destruct.c @@ -1,10 +1,13 @@ #include +#include void __attribute__((constructor)) calledFirst(); void __attribute__((destructor)) calledLast(); -void main() { +int main() { printf("\nI am in main"); + // return 0; + exit(0); // Even called on this!!! } void calledFirst() {