blob: d6661efb355b9342842c4eccc3b2f70e8fa94a17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $OpenBSD: ctors.c,v 1.2 2002/02/18 11:03:58 art Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain.
*/
void foo(void) __attribute__((constructor));
int constructed = 0;
void
foo(void)
{
constructed = 1;
}
int
main()
{
return !constructed;
}
|