mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
isa<> tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b7391fadff
commit
af8e2ef649
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user