commit | 8ed3adec26af254dd6df6b34546737045f353670 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Sep 27 18:55:06 2011 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Sep 27 18:55:06 2011 +0000 |
tree | 0ac8293f013556cfb78656a845c5e07b4d51978c | |
parent | d3c1661593e246f9cd25dc9da27e54b0a61ffe0d [diff] [blame] |
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 f8e3eb2..5300d36 100644 --- a/test/CodeGenCXX/rvalue-references.cpp +++ b/test/CodeGenCXX/rvalue-references.cpp
@@ -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(); +}