forked from OSchip/llvm-project
Fix failing test due to incorrect use of noexcept
llvm-svn: 332066
This commit is contained in:
parent
7d6224d2fa
commit
f9fc9513bf
|
@ -58,20 +58,6 @@ void test_result_of_imp()
|
|||
|
||||
int main()
|
||||
{
|
||||
{ // Function types with noexcept
|
||||
typedef bool (&RF0)(int) noexcept;
|
||||
typedef bool (&RF1)(int, ...) noexcept;
|
||||
typedef bool (*PF0)(int) noexcept;
|
||||
typedef bool (*PF1)(int, ...) noexcept;
|
||||
typedef bool (*&PRF0)(int) noexcept;
|
||||
typedef bool (*&PRF1)(int, ...) noexcept;
|
||||
test_result_of_imp<RF0(int), bool>();
|
||||
test_result_of_imp<PF0(int), bool>();
|
||||
test_result_of_imp<PRF0(int), bool>();
|
||||
test_result_of_imp<RF1(int, int), bool>();
|
||||
test_result_of_imp<PF1(int, int), bool>();
|
||||
test_result_of_imp<PRF1(int, int), bool>();
|
||||
}
|
||||
{
|
||||
typedef char F::*PMD;
|
||||
test_result_of_imp<PMD(F &), char &>();
|
||||
|
|
Loading…
Reference in New Issue