1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

isa<> tests

llvm-svn: 108851
This commit is contained in:
Gabor Greif 2010-07-20 16:38:12 +00:00
parent 64ebb77660
commit c2c3e4155d

View File

@ -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;