[PATCH] D49314: [OpenEmbedded] Add a unittest for aarch64-oe-linux
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 12:10:41 PDT 2018
mgrang created this revision.
mgrang added reviewers: compnerd, rengolin.
Herald added a reviewer: javed.absar.
Herald added subscribers: dexonsmith, kristof.beyls.
Added a unittest for aarch64-oe-linux which was missed in https://reviews.llvm.org/D48861.
Repository:
rL LLVM
https://reviews.llvm.org/D49314
Files:
unittests/ADT/TripleTest.cpp
Index: unittests/ADT/TripleTest.cpp
===================================================================
--- unittests/ADT/TripleTest.cpp
+++ unittests/ADT/TripleTest.cpp
@@ -367,6 +367,12 @@
EXPECT_EQ(Triple::Linux, T.getOS());
EXPECT_EQ(Triple::GNUEABI, T.getEnvironment());
+ T = Triple("aarch64-oe-linux");
+ EXPECT_EQ(Triple::aarch64, T.getArch());
+ EXPECT_EQ(Triple::OpenEmbedded, T.getVendor());
+ EXPECT_EQ(Triple::Linux, T.getOS());
+ EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
+
T = Triple("huh");
EXPECT_EQ(Triple::UnknownArch, T.getArch());
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49314.155453.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/5cec0f31/attachment.bin>
More information about the llvm-commits
mailing list