From b776265f02cb3b907bceee84dd8825f9d63ddc82 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 14 Jul 2001 11:18:31 +0000 Subject: [PATCH] Tweeked so that test fails under VC6 (it should due to a compiler bug). [SVN r10612] --- static_assert_test_fail_4.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static_assert_test_fail_4.cpp b/static_assert_test_fail_4.cpp index 019fcbe..83dd5d1 100644 --- a/static_assert_test_fail_4.cpp +++ b/static_assert_test_fail_4.cpp @@ -13,10 +13,6 @@ // all these tests should fail: // -#ifdef BOOST_MSVC -#error "VC6 not supported in this test (buggy compiler problem)" -#endif - struct Bob { @@ -27,7 +23,7 @@ struct Bob char c; int f() { -#ifndef _MSC_VER // broken sizeof in VC6 +#ifndef BOOST_MSVC // broken sizeof in VC6 BOOST_STATIC_ASSERT(sizeof(x) == 4); BOOST_STATIC_ASSERT(sizeof(c) == 1); BOOST_STATIC_ASSERT((sizeof(x) == sizeof(c))); // should not compile