projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add amdopencl environment to triple
[oota-llvm.git]
/
unittests
/
ADT
/
TripleTest.cpp
diff --git
a/unittests/ADT/TripleTest.cpp
b/unittests/ADT/TripleTest.cpp
index 2b1e871b94cb62419beee0d755e3a87b56b2f064..ead430bdc48d70b7bcabd98f06aa8e23bffe2bb2 100644
(file)
--- a/
unittests/ADT/TripleTest.cpp
+++ b/
unittests/ADT/TripleTest.cpp
@@
-354,6
+354,8
@@
TEST(TripleTest, MutateName) {
EXPECT_EQ(Triple::Darwin, T.getOS());
EXPECT_EQ("i386-pc-darwin", T.getTriple());
+ T.setEnvironmentName("amdopencl");
+ EXPECT_EQ(Triple::AMDOpenCL, T.getEnvironment());
}
TEST(TripleTest, BitWidthPredicates) {