diff options
author | dim <dim@FreeBSD.org> | 2012-04-14 13:54:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-04-14 13:54:10 +0000 |
commit | 1fc08f5e9ef733ef1ce6f363fecedc2260e78974 (patch) | |
tree | 19c69a04768629f2d440944b71cbe90adae0b615 /unittests/Support/Casting.cpp | |
parent | 07637c87f826cdf411f0673595e9bc92ebd793f2 (diff) | |
download | FreeBSD-src-1fc08f5e9ef733ef1ce6f363fecedc2260e78974.zip FreeBSD-src-1fc08f5e9ef733ef1ce6f363fecedc2260e78974.tar.gz |
Vendor import of llvm trunk r154661:
http://llvm.org/svn/llvm-project/llvm/trunk@r154661
Diffstat (limited to 'unittests/Support/Casting.cpp')
-rw-r--r-- | unittests/Support/Casting.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Support/Casting.cpp b/unittests/Support/Casting.cpp index ae84693..ca0b40b 100644 --- a/unittests/Support/Casting.cpp +++ b/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 |