removed duplicated tests - Howard was quicker than me.

llvm-svn: 149545
This commit is contained in:
Marshall Clow
2012-02-01 21:49:28 +00:00
parent 25a11e6dbd
commit e71ddf2fcb

View File

@@ -1,64 +0,0 @@
//===--------------------- catch_pointer_nullptr.cpp ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <cassert>
#if __has_feature(cxx_nullptr)
struct A {};
void test1()
{
try
{
throw nullptr;
assert(false);
}
catch (const A*)
{
}
catch (A*)
{
assert(false);
}
}
void test2()
{
try
{
throw nullptr;
assert(false);
}
catch (A*)
{
}
catch (const A*)
{
assert(false);
}
}
#else
void test1()
{
}
void test2()
{
}
#endif
int main()
{
test1();
test2();
}