Remove building with NOCRYPTO option
[minix3.git] / external / bsd / libc++ / dist / libcxxrt / test / test_guard.cc
blob1ad5a2f58134ff01874e2d8e266af9fc4af0485d
1 #include <stdio.h>
2 #include "test.h"
4 static int static_count;
5 struct static_struct
7 int i;
8 static_struct()
10 static_count++;
11 i = 12;
15 static static_struct ss;
17 int init_static(void)
19 static static_struct s;
20 return s.i;
23 void test_guards(void)
25 init_static();
26 int i = init_static();
27 TEST(i == 12, "Static initialized");
28 TEST(static_count == 2, "Each static only initialized once");