[Patch] Support for Nuxi CloudABI
Ed Schouten
ed at nuxi.nl
Sat Mar 7 00:50:23 PST 2015
Hi Eric,
2015-03-07 1:45 GMT+01:00 Eric Christopher <echristo at gmail.com>:
> Could use some unittests for the triple changes. :)
Thanks for the pointer! I've added the following test:
Index: unittests/ADT/TripleTest.cpp
===================================================================
--- unittests/ADT/TripleTest.cpp (revision 231492)
+++ unittests/ADT/TripleTest.cpp (working copy)
@@ -159,6 +159,12 @@
EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
EXPECT_EQ(Triple::UnknownOS, T.getOS());
+ T = Triple("x86_64-unknown-cloudabi");
+ EXPECT_EQ(Triple::x86_64, T.getArch());
+ EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
+ EXPECT_EQ(Triple::CloudABI, T.getOS());
+ EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
+
T = Triple("huh");
EXPECT_EQ(Triple::UnknownArch, T.getArch());
}
--
Ed Schouten <ed at nuxi.nl>
More information about the llvm-commits
mailing list