Mercurial > hg > CbC > CbC_llvm
diff unittests/Support/EndianStreamTest.cpp @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
line wrap: on
line diff
--- a/unittests/Support/EndianStreamTest.cpp Sun Dec 23 19:23:36 2018 +0900 +++ b/unittests/Support/EndianStreamTest.cpp Wed Aug 14 19:46:37 2019 +0900 @@ -1,9 +1,8 @@ //===- unittests/Support/EndianStreamTest.cpp - EndianStream.h tests ------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -21,7 +20,7 @@ { raw_svector_ostream OS(data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write(static_cast<int32_t>(-1362446643)); } @@ -36,7 +35,7 @@ { raw_svector_ostream OS(data); - endian::Writer<big> BE(OS); + endian::Writer BE(OS, big); BE.write(static_cast<int32_t>(-1362446643)); } @@ -52,7 +51,7 @@ { raw_svector_ostream OS(data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write(12345.0f); } @@ -67,7 +66,7 @@ { raw_svector_ostream OS(data); - endian::Writer<big> BE(OS); + endian::Writer BE(OS, big); BE.write(12345.0f); } @@ -82,7 +81,7 @@ { raw_svector_ostream OS(data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write(static_cast<int64_t>(-136244664332342323)); } @@ -101,7 +100,7 @@ { raw_svector_ostream OS(data); - endian::Writer<big> BE(OS); + endian::Writer BE(OS, big); BE.write(static_cast<int64_t>(-136244664332342323)); } @@ -120,7 +119,7 @@ { raw_svector_ostream OS(data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write(-2349214918.58107); } @@ -139,7 +138,7 @@ { raw_svector_ostream OS(data); - endian::Writer<big> BE(OS); + endian::Writer BE(OS, big); BE.write(-2349214918.58107); } @@ -158,7 +157,7 @@ { raw_svector_ostream OS(Data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write<uint16_t>({0x1234, 0x5678}); } @@ -173,7 +172,7 @@ { raw_svector_ostream OS(Data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); std::vector<uint16_t> Vec{0x1234, 0x5678}; LE.write<uint16_t>(Vec); } @@ -189,7 +188,7 @@ { raw_svector_ostream OS(Data); - endian::Writer<little> LE(OS); + endian::Writer LE(OS, little); LE.write<float>({12345.0f, 12346.0f}); }