From af8e2ef649b90e88f9d595a638279e3bc4892845 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Tue, 20 Jul 2010 16:38:12 +0000 Subject: [PATCH] isa<> tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108851 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Casting.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unittests/Support/Casting.cpp b/unittests/Support/Casting.cpp index d7e89f802be..3a3af7e046d 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(B1)); + EXPECT_TRUE(isa(B2)); + EXPECT_TRUE(isa(B3)); + EXPECT_TRUE(isa(B4)); } bar B;