MCPcopy Create free account
hub / github.com/aria2/aria2 / testArrayLength

Method testArrayLength

test/array_funTest.cc:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void 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
69namespace {
70void arrayPtrCast(struct array_funTest::X* x) {}

Callers

nothing calls this directly

Calls 1

arraySizeFunction · 0.85

Tested by

no test coverage detected