diff options
author | anonymous <local@localhost> | 2010-09-29 23:20:49 +0000 |
---|---|---|
committer | anonymous <local@localhost> | 2010-09-29 23:20:58 +0000 |
commit | a283c64f6b95ec2db1b4b6004f27b1e448961e73 (patch) | |
tree | 01d89942a1ba29a1ce64127911bdf978d80cef87 /test/test_guard.cc | |
parent | becd5d8b40af38d97134dfb491f109e0d1688976 (diff) | |
download | libcxxrt-a283c64f6b95ec2db1b4b6004f27b1e448961e73.tar.gz libcxxrt-a283c64f6b95ec2db1b4b6004f27b1e448961e73.tar.bz2 libcxxrt-a283c64f6b95ec2db1b4b6004f27b1e448961e73.tar.xz |
Add __cxa_demangle support
Diffstat (limited to 'test/test_guard.cc')
-rw-r--r-- | test/test_guard.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_guard.cc b/test/test_guard.cc index 5f8521d..1ad5a2f 100644 --- a/test/test_guard.cc +++ b/test/test_guard.cc @@ -1,4 +1,5 @@ #include <stdio.h> +#include "test.h" static int static_count; struct static_struct @@ -6,7 +7,6 @@ struct static_struct int i; static_struct() { - fprintf(stderr, "Initialized static\n"); static_count++; i = 12; }; @@ -23,4 +23,7 @@ int init_static(void) void test_guards(void) { init_static(); + int i = init_static(); + TEST(i == 12, "Static initialized"); + TEST(static_count == 2, "Each static only initialized once"); } |