summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-01-22 12:14:35 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-01-22 12:14:35 +0000
commit31194402394205ce56dc09d372fa7dabedac60c8 (patch)
tree7cd5ce0b1b2108128385cf83a8dbfc2ba2e54459 /llvm
parent5482b9f53540a2c1889c06e84425bbe7a616e6a8 (diff)
downloadbcm5719-llvm-31194402394205ce56dc09d372fa7dabedac60c8.tar.gz
bcm5719-llvm-31194402394205ce56dc09d372fa7dabedac60c8.zip
unittests/Support/Casting.cpp: [PR8226] Workaround for MSVC|Debug.
llvm-svn: 148659
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/Support/Casting.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Casting.cpp b/llvm/unittests/Support/Casting.cpp
index ae84693bd63..ca0b40b1f55 100644
--- a/llvm/unittests/Support/Casting.cpp
+++ b/llvm/unittests/Support/Casting.cpp
@@ -69,7 +69,9 @@ namespace {
const foo *null_foo = NULL;
+bar B;
extern bar &B1;
+bar &B1 = B;
extern const bar *B2;
// test various configurations of const
const bar &B3 = B1;
@@ -145,9 +147,6 @@ TEST(CastingTest, dyn_cast_or_null) {
//foo &F23 = cast_or_null<foo>(B1);
//const foo &F24 = cast_or_null<foo>(B3);
-
-bar B;
-bar &B1 = B;
const bar *B2 = &B;
} // anonymous namespace
OpenPOWER on IntegriCloud