Changed tests to guarantee portability

[SVN r22245]
This commit is contained in:
John Maddock
2004-02-12 11:29:47 +00:00
parent 328b4fee16
commit 68545773d5
4 changed files with 10 additions and 5 deletions

View File

@ -10,9 +10,11 @@
//
// all these tests should fail:
//
typedef char a1[2];
typedef char a2[3];
// Namespace scope
BOOST_STATIC_ASSERT(sizeof(int) == sizeof(char)); // will not compile
BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // will not compile