diff options
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/Casting.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/unittests/Support/Casting.cpp b/unittests/Support/Casting.cpp index d7e89f802b..3a3af7e046 100644 --- 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; |