From: Eli Friedman Date: Tue, 27 Sep 2011 18:55:06 +0000 (+0000) Subject: Move test, so it actually tests what it is supposed to (given that we don't have... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ed3adec26af254dd6df6b34546737045f353670;p=clang Move test, so it actually tests what it is supposed to (given that we don't have an AST verifier). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140620 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/rvalue-references.cpp b/test/CodeGenCXX/rvalue-references.cpp index f8e3eb29dd..5300d36800 100644 --- a/test/CodeGenCXX/rvalue-references.cpp +++ b/test/CodeGenCXX/rvalue-references.cpp @@ -101,3 +101,11 @@ namespace test1 { // CHECK-NEXT: ret void B::B(int i) : a(move(i)) {} } + +// PR11009 +struct MoveConvertible { + operator int&& () const; +}; +void moveConstruct() { + (void)(int)MoveConvertible(); +} diff --git a/test/SemaCXX/rval-references.cpp b/test/SemaCXX/rval-references.cpp index 38b45a530f..74afdbe410 100644 --- a/test/SemaCXX/rval-references.cpp +++ b/test/SemaCXX/rval-references.cpp @@ -92,11 +92,3 @@ MoveOnly returningNonEligible() { else // Construction from different type can't be elided return i; // expected-error {{no viable conversion from 'int' to 'MoveOnly'}} } - -// PR11009 -struct MoveConvertible { - operator int&& () const; -}; -void moveConstruct() { - (void)(int)MoveConvertible(); -}