Move constexpr arrays out of class definition.

GCC Linker doesn't seem to like this.

llvm-svn: 296560
This commit is contained in:
Zachary Turner 2017-03-01 01:17:31 +00:00
parent cf3512dc12
commit 0858c4cf4a

View File

@ -124,10 +124,11 @@ private:
BumpPtrAllocator Allocator;
};
constexpr endianness Endians[] = { big, little, native };
constexpr uint32_t NumEndians = llvm::array_lengthof(Endians);
constexpr uint32_t NumStreams = 2 * NumEndians;
class BinaryStreamTest : public testing::Test {
static constexpr endianness Endians[] = {big, little, native};
static constexpr uint32_t NumEndians = llvm::array_lengthof(Endians);
static constexpr uint32_t NumStreams = 2 * NumEndians;
public:
BinaryStreamTest() {}