lnav/test/si_test.cc
2009-09-13 18:07:32 -07:00

20 lines
344 B
C++

#include <stdio.h>
#include "strong_int.hh"
class __dsi1_distinct;
typedef strong_int<int, __dsi1_distinct> dsi1_t;
class __dsi2_distinct;
typedef strong_int<int, __dsi2_distinct> dsi2_t;
STRONG_INT_TYPE(int, dsi3);
int main(int argc, char *argv[])
{
dsi1_t dsi1(0);
dsi2_t dsi2(1);
dsi3_t dsi3(2);
printf("%d\n", sizeof(dsi1));
}