[cfe-commits] r140620 - in /cfe/trunk/test: CodeGenCXX/rvalue-references.cpp SemaCXX/rval-references.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Sep 27 11:55:06 PDT 2011
Author: efriedma
Date: Tue Sep 27 13:55:06 2011
New Revision: 140620
URL: http://llvm.org/viewvc/llvm-project?rev=140620&view=rev
Log:
Move test, so it actually tests what it is supposed to (given that we don't have an AST verifier).
Modified:
cfe/trunk/test/CodeGenCXX/rvalue-references.cpp
cfe/trunk/test/SemaCXX/rval-references.cpp
Modified: cfe/trunk/test/CodeGenCXX/rvalue-references.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/rvalue-references.cpp?rev=140620&r1=140619&r2=140620&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/rvalue-references.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/rvalue-references.cpp Tue Sep 27 13:55:06 2011
@@ -101,3 +101,11 @@
// CHECK-NEXT: ret void
B::B(int i) : a(move(i)) {}
}
+
+// PR11009
+struct MoveConvertible {
+ operator int&& () const;
+};
+void moveConstruct() {
+ (void)(int)MoveConvertible();
+}
Modified: cfe/trunk/test/SemaCXX/rval-references.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/rval-references.cpp?rev=140620&r1=140619&r2=140620&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/rval-references.cpp (original)
+++ cfe/trunk/test/SemaCXX/rval-references.cpp Tue Sep 27 13:55:06 2011
@@ -92,11 +92,3 @@
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();
-}
More information about the cfe-commits
mailing list