summaryrefslogtreecommitdiff
path: root/test/array_funTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-01 00:02:29 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-01 00:02:29 +0900
commite73c3c53ffb9ce681fe712142143777eaf50da47 (patch)
treec16d879d1011f80be97a7e2471476e17fe0b0a86 /test/array_funTest.cc
parent037f1512dbcdf19237d6064660d5c75b4121f0bf (diff)
Fixed clang warning and errors.
Test for the zero-length array with A2_ARRAY_LEN was commented out since it is only used in unit test code and clang and old gcc 3.4.3 emit error.
Diffstat (limited to 'test/array_funTest.cc')
-rw-r--r--test/array_funTest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/array_funTest.cc b/test/array_funTest.cc
index c361bf29..f922f33d 100644
--- a/test/array_funTest.cc
+++ b/test/array_funTest.cc
@@ -65,11 +65,11 @@ void array_funTest::testArray_and()
void array_funTest::testArrayLength()
{
int64_t ia[] = { 1, 2, 3, 4, 5 };
- int64_t zeroLengthArray[] = {};
-
CPPUNIT_ASSERT_EQUAL((size_t)5, A2_ARRAY_LEN(ia));
- // This causes compile error under gcc v3.4.3 opensolaris 5.11
- CPPUNIT_ASSERT_EQUAL((size_t)0, A2_ARRAY_LEN(zeroLengthArray));
+ // This causes compile error under clang and gcc v3.4.3 opensolaris
+ // 5.11
+ // int64_t zeroLengthArray[] = {};
+ // CPPUNIT_ASSERT_EQUAL((size_t)0, A2_ARRAY_LEN(zeroLengthArray));
}
namespace {