[llvm-commits] [llvm] r109110 - /llvm/trunk/unittests/Support/Casting.cpp
Gabor Greif
ggreif at gmail.com
Thu Jul 22 08:28:30 PDT 2010
Author: ggreif
Date: Thu Jul 22 10:28:30 2010
New Revision: 109110
URL: http://llvm.org/viewvc/llvm-project?rev=109110&view=rev
Log:
tidy up
Modified:
llvm/trunk/unittests/Support/Casting.cpp
Modified: llvm/trunk/unittests/Support/Casting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Casting.cpp?rev=109110&r1=109109&r2=109110&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Casting.cpp (original)
+++ llvm/trunk/unittests/Support/Casting.cpp Thu Jul 22 10:28:30 2010
@@ -109,20 +109,16 @@
}
TEST(CastingTest, dyn_cast) {
- // foo &F1 = dyn_cast<foo>(B1);
- // EXPECT_NE(&F1, null_foo);
- const foo *F3 = dyn_cast<foo>(B2);
+ const foo *F1 = dyn_cast<foo>(B2);
+ EXPECT_NE(F1, null_foo);
+ const foo *F2 = dyn_cast<foo>(B2);
+ EXPECT_NE(F2, null_foo);
+ const foo *F3 = dyn_cast<foo>(B4);
EXPECT_NE(F3, null_foo);
- const foo *F4 = dyn_cast<foo>(B2);
- EXPECT_NE(F4, null_foo);
- // const foo &F5 = dyn_cast<foo>(B3);
- // EXPECT_NE(&F5, null_foo);
- const foo *F6 = dyn_cast<foo>(B4);
- EXPECT_NE(F6, null_foo);
- foo *F7 = dyn_cast<foo>(fub());
- EXPECT_EQ(F7, null_foo);
- // foo *F8 = B1.daz();
- // EXPECT_NE(F8, null_foo);
+ foo *F4 = dyn_cast<foo>(fub());
+ EXPECT_EQ(F4, null_foo);
+ // foo *F5 = B1.daz();
+ // EXPECT_NE(F5, null_foo);
}
// These lines are errors...
More information about the llvm-commits
mailing list