projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7391fa
)
isa<> tests
author
Gabor Greif
<ggreif@gmail.com>
Tue, 20 Jul 2010 16:38:12 +0000
(16:38 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Tue, 20 Jul 2010 16:38:12 +0000
(16:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108851
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/Casting.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/Casting.cpp
b/unittests/Support/Casting.cpp
index d7e89f802bebbf12c33494a5eaee18995371b448..3a3af7e046d50868b79f1b315ee6311f8797c9aa 100644
(file)
--- a/
unittests/Support/Casting.cpp
+++ b/
unittests/Support/Casting.cpp
@@
-22,8
+22,14
@@
namespace {
extern bar &B1;
extern const bar *B2;
-TEST(CastingTest, Basics) {
+TEST(CastingTest, isa) {
+ // test various configurations of const
+ const bar &B3 = B1;
+ const bar *const B4 = B2;
EXPECT_TRUE(isa<foo>(B1));
+ EXPECT_TRUE(isa<foo>(B2));
+ EXPECT_TRUE(isa<foo>(B3));
+ EXPECT_TRUE(isa<foo>(B4));
}
bar B;