| 75 | }; |
| 76 | |
| 77 | TEST_F(ResourcePoolTest, atomic_array_init) { |
| 78 | for (int i = 0; i < 2; ++i) { |
| 79 | if (i == 0) { |
| 80 | butil::atomic<int> a[2]; |
| 81 | a[0] = 1; |
| 82 | // The folowing will cause compile error with gcc3.4.5 and the |
| 83 | // reason is unknown |
| 84 | // a[1] = 2; |
| 85 | } else if (i == 2) { |
| 86 | butil::atomic<int> a[2]; |
| 87 | ASSERT_EQ(0, a[0]); |
| 88 | ASSERT_EQ(0, a[1]); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | int nc = 0; |
| 94 | int nd = 0; |
nothing calls this directly
no test coverage detected