exit(0) test added
This commit is contained in:
parent
41181c3d04
commit
2579b4f105
@ -1,10 +1,13 @@
|
|||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
|
#include<stdlib.h>
|
||||||
|
|
||||||
void __attribute__((constructor)) calledFirst();
|
void __attribute__((constructor)) calledFirst();
|
||||||
void __attribute__((destructor)) calledLast();
|
void __attribute__((destructor)) calledLast();
|
||||||
|
|
||||||
void main() {
|
int main() {
|
||||||
printf("\nI am in main");
|
printf("\nI am in main");
|
||||||
|
// return 0;
|
||||||
|
exit(0); // Even called on this!!!
|
||||||
}
|
}
|
||||||
|
|
||||||
void calledFirst() {
|
void calledFirst() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user