| 57 | } |
| 58 | |
| 59 | void array_funTest::testArrayLength() |
| 60 | { |
| 61 | int64_t ia[] = {1, 2, 3, 4, 5}; |
| 62 | CPPUNIT_ASSERT_EQUAL((size_t)5, arraySize(ia)); |
| 63 | // This causes compile error under clang and gcc v3.4.3 opensolaris |
| 64 | // 5.11 |
| 65 | // int64_t zeroLengthArray[] = {}; |
| 66 | // CPPUNIT_ASSERT_EQUAL((size_t)0, arraySize(zeroLengthArray)); |
| 67 | } |
| 68 | |
| 69 | namespace { |
| 70 | void arrayPtrCast(struct array_funTest::X* x) {} |
nothing calls this directly
no test coverage detected