1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

TripleTest.FileFormat: check non-default value

Triple::objectFormat defaults to an Elf format.
Changing objectFormat to Elf doesn't make any difference.

llvm-svn: 294104
This commit is contained in:
Alex Denisov 2017-02-04 22:49:22 +00:00
parent b3b4315a84
commit 346fae03fe

View File

@ -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) {