From: NAKAMURA Takumi Date: Wed, 1 Jun 2016 14:26:54 +0000 (+0000) Subject: MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std::vector. X-Git-Tag: android-x86-7.1-r4~32492 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cc0c9e0cf6a583c82e2dc4b604edb8c4e88659b7;p=android-x86%2Fexternal-llvm.git MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std::vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271397 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index b98a3c81ed6..b93423de7ac 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -37,11 +37,15 @@ namespace { consumeError(std::move(E)); \ } +static const uint32_t BlocksAry[] = {0, 1, 2, 5, 4, 3, 6, 7, 8, 9}; +static const char DataAry[] = {'A', 'B', 'C', 'F', 'E', + 'D', 'G', 'H', 'I', 'J'}; + class DiscontiguousFile : public IPDBFile { public: DiscontiguousFile() - : Blocks{0, 1, 2, 5, 4, 3, 6, 7, 8, 9}, - Data{'A', 'B', 'C', 'F', 'E', 'D', 'G', 'H', 'I', 'J'} {} + : Blocks(&BlocksAry[0], &BlocksAry[10]), Data(&DataAry[0], &DataAry[10]) { + } virtual uint32_t getBlockSize() const override { return 1; } virtual uint32_t getBlockCount() const override { return 10; }