reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
726 EXPECT_EQ(Triple::UnknownArch, T.getArch()); 727 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); 728 EXPECT_EQ(Triple::UnknownOS, T.getOS()); 729 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); 731 T.setArchName("i386"); 732 EXPECT_EQ(Triple::x86, T.getArch()); 733 EXPECT_EQ("i386--", T.getTriple()); 735 T.setVendorName("pc"); 736 EXPECT_EQ(Triple::x86, T.getArch()); 737 EXPECT_EQ(Triple::PC, T.getVendor()); 738 EXPECT_EQ("i386-pc-", T.getTriple()); 740 T.setOSName("linux"); 741 EXPECT_EQ(Triple::x86, T.getArch()); 742 EXPECT_EQ(Triple::PC, T.getVendor()); 743 EXPECT_EQ(Triple::Linux, T.getOS()); 744 EXPECT_EQ("i386-pc-linux", T.getTriple()); 746 T.setEnvironmentName("gnu"); 747 EXPECT_EQ(Triple::x86, T.getArch()); 748 EXPECT_EQ(Triple::PC, T.getVendor()); 749 EXPECT_EQ(Triple::Linux, T.getOS()); 750 EXPECT_EQ("i386-pc-linux-gnu", T.getTriple()); 752 T.setOSName("freebsd"); 753 EXPECT_EQ(Triple::x86, T.getArch()); 754 EXPECT_EQ(Triple::PC, T.getVendor()); 755 EXPECT_EQ(Triple::FreeBSD, T.getOS()); 756 EXPECT_EQ("i386-pc-freebsd-gnu", T.getTriple()); 758 T.setOSAndEnvironmentName("darwin"); 759 EXPECT_EQ(Triple::x86, T.getArch()); 760 EXPECT_EQ(Triple::PC, T.getVendor()); 761 EXPECT_EQ(Triple::Darwin, T.getOS()); 762 EXPECT_EQ("i386-pc-darwin", T.getTriple());