[llvm-commits] [llvm] r148659 - /llvm/trunk/unittests/Support/Casting.cpp

NAKAMURA Takumi geek4civic at gmail.com
Sun Jan 22 04:14:35 PST 2012


Author: chapuni
Date: Sun Jan 22 06:14:35 2012
New Revision: 148659

URL: http://llvm.org/viewvc/llvm-project?rev=148659&view=rev
Log:
unittests/Support/Casting.cpp: [PR8226] Workaround for MSVC|Debug.

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=148659&r1=148658&r2=148659&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Casting.cpp (original)
+++ llvm/trunk/unittests/Support/Casting.cpp Sun Jan 22 06:14:35 2012
@@ -69,7 +69,9 @@
 
 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 @@
 //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
 





More information about the llvm-commits mailing list