]> granicus.if.org Git - clang/commitdiff
Move test, so it actually tests what it is supposed to (given that we don't have...
authorEli Friedman <eli.friedman@gmail.com>
Tue, 27 Sep 2011 18:55:06 +0000 (18:55 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 27 Sep 2011 18:55:06 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140620 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/rvalue-references.cpp
test/SemaCXX/rval-references.cpp

index f8e3eb29dd80346b2e6c4061d4d985a192a22fee..5300d3680046f5af5b9b2ff14b5fc430db2393fd 100644 (file)
@@ -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();
+}
index 38b45a530fd1ea034b8e2f5c32c8f5a2ba429e0a..74afdbe41043cadd5f98902b6312988b3049ea55 100644 (file)
@@ -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();
-}