forked from nurettin/libnuwen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typedef_test.cc
25 lines (20 loc) · 839 Bytes
/
typedef_test.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Stephan T. Lavavej, http://nuwen.net .
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt .
#include "test.hh"
#include "typedef.hh"
#include "external_begin.hh"
#include <climits>
#include "external_end.hh"
using namespace nuwen;
int main() {
NUWEN_TEST("typedef1", sizeof(uc_t) * CHAR_BIT == 8 )
NUWEN_TEST("typedef2", sizeof(us_t) * CHAR_BIT == 16)
NUWEN_TEST("typedef3", sizeof(ul_t) * CHAR_BIT == 32)
NUWEN_TEST("typedef4", sizeof(ull_t) * CHAR_BIT == 64)
NUWEN_TEST("typedef5", sizeof(sc_t) * CHAR_BIT == 8 )
NUWEN_TEST("typedef6", sizeof(ss_t) * CHAR_BIT == 16)
NUWEN_TEST("typedef7", sizeof(sl_t) * CHAR_BIT == 32)
NUWEN_TEST("typedef8", sizeof(sll_t) * CHAR_BIT == 64)
}