llvm.org GIT mirror llvm / 22de43b
Move constexpr arrays out of class definition. GCC Linker doesn't seem to like this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296560 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 2 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
123123 BumpPtrAllocator Allocator;
124124 };
125125
126 constexpr endianness Endians[] = { big, little, native };
127 constexpr uint32_t NumEndians = llvm::array_lengthof(Endians);
128 constexpr uint32_t NumStreams = 2 * NumEndians;
129
126130 class BinaryStreamTest : public testing::Test {
127 static constexpr endianness Endians[] = {big, little, native};
128 static constexpr uint32_t NumEndians = llvm::array_lengthof(Endians);
129 static constexpr uint32_t NumStreams = 2 * NumEndians;
130131
131132 public:
132133 BinaryStreamTest() {}