Remove building with NOCRYPTO option
[minix.git] / tests / lib / csu / dso / h_initfini3_dso.cxx
blobff90ce66b94b005c5704dec1f5a175e36b3dc358
1 #include <unistd.h>
3 #ifdef CHECK_STACK_ALIGNMENT
4 #include <stdlib.h>
6 extern "C" int check_stack_alignment(void);
7 #endif
9 class Test2 {
10 public:
11 Test2()
13 static const char msg[] = "constructor2 executed\n";
14 write(STDOUT_FILENO, msg, sizeof(msg) - 1);
15 #ifdef CHECK_STACK_ALIGNMENT
16 if (!check_stack_alignment()) {
17 static const char msg2[] = "stack unaligned \n";
18 write(STDOUT_FILENO, msg2, sizeof(msg2) - 1);
19 exit(1);
21 #endif
23 ~Test2()
25 static const char msg[] = "destructor2 executed\n";
26 write(STDOUT_FILENO, msg, sizeof(msg) - 1);
27 #ifdef CHECK_STACK_ALIGNMENT
28 if (!check_stack_alignment()) {
29 static const char msg2[] = "stack unaligned \n";
30 write(STDOUT_FILENO, msg2, sizeof(msg2) - 1);
31 exit(1);
33 #endif
37 Test2 test2;