[llvm] r324966 - [WebAssembly] Update ADT/TripleTest.cpp now that default file format has changed
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 15:47:38 PST 2018
Author: sbc
Date: Mon Feb 12 15:47:38 2018
New Revision: 324966
URL: http://llvm.org/viewvc/llvm-project?rev=324966&view=rev
Log:
[WebAssembly] Update ADT/TripleTest.cpp now that default file format has changed
Differential Revision: https://reviews.llvm.org/D43212
Modified:
llvm/trunk/unittests/ADT/TripleTest.cpp
Modified: llvm/trunk/unittests/ADT/TripleTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/TripleTest.cpp?rev=324966&r1=324965&r2=324966&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/TripleTest.cpp (original)
+++ llvm/trunk/unittests/ADT/TripleTest.cpp Mon Feb 12 15:47:38 2018
@@ -1027,8 +1027,13 @@ TEST(TripleTest, FileFormat) {
EXPECT_EQ(Triple::ELF, Triple("i686-pc-windows-msvc-elf").getObjectFormat());
EXPECT_EQ(Triple::ELF, Triple("i686-pc-cygwin-elf").getObjectFormat());
- EXPECT_EQ(Triple::Wasm, Triple("wasm32-unknown-unknown-wasm").getObjectFormat());
- EXPECT_EQ(Triple::Wasm, Triple("wasm64-unknown-unknown-wasm").getObjectFormat());
+ EXPECT_EQ(Triple::Wasm, Triple("wasm32-unknown-unknown").getObjectFormat());
+ EXPECT_EQ(Triple::Wasm, Triple("wasm64-unknown-unknown").getObjectFormat());
+
+ EXPECT_EQ(Triple::ELF,
+ Triple("wasm32-unknown-unknown-elf").getObjectFormat());
+ EXPECT_EQ(Triple::ELF,
+ Triple("wasm64-unknown-unknown-elf").getObjectFormat());
Triple MSVCNormalized(Triple::normalize("i686-pc-windows-msvc-elf"));
EXPECT_EQ(Triple::ELF, MSVCNormalized.getObjectFormat());
More information about the llvm-commits
mailing list