From 2579b4f105b45745c3dd4b97f42f3ec4d1275b25 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 24 Apr 2025 18:22:20 +0200 Subject: [PATCH] exit(0) test added --- construct_destruct.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {