[llvm] r294104 - TripleTest.FileFormat: check non-default value
Alex Denisov via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 14:49:22 PST 2017
Author: alexdenisov
Date: Sat Feb 4 16:49:22 2017
New Revision: 294104
URL: http://llvm.org/viewvc/llvm-project?rev=294104&view=rev
Log:
TripleTest.FileFormat: check non-default value
Triple::objectFormat defaults to an Elf format.
Changing objectFormat to Elf doesn't make any difference.
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=294104&r1=294103&r2=294104&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/TripleTest.cpp (original)
+++ llvm/trunk/unittests/ADT/TripleTest.cpp Sat Feb 4 16:49:22 2017
@@ -970,6 +970,9 @@ TEST(TripleTest, FileFormat) {
Triple T = Triple("");
T.setObjectFormat(Triple::ELF);
EXPECT_EQ(Triple::ELF, T.getObjectFormat());
+
+ T.setObjectFormat(Triple::MachO);
+ EXPECT_EQ(Triple::MachO, T.getObjectFormat());
}
TEST(TripleTest, NormalizeWindows) {
More information about the llvm-commits
mailing list