mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:06:06 +00:00

constructor call, the conversion is only a standard conversion sequence if that constructor is a copy constructor. This fixes PR5834 in a semi-lame way, because the "real" fix will be to move over to InitializationSequence. That will happen "soonish", but not now. llvm-svn: 91861
15 lines
274 B
C++
15 lines
274 B
C++
// RUN: %clang_cc1 -emit-llvm -o - %s
|
|
|
|
// PR5834
|
|
struct ASTMultiMover {};
|
|
struct ASTMultiPtr {
|
|
ASTMultiPtr();
|
|
ASTMultiPtr(ASTMultiPtr&);
|
|
ASTMultiPtr(ASTMultiMover mover);
|
|
operator ASTMultiMover();
|
|
};
|
|
void f1() {
|
|
extern void f0(ASTMultiPtr);
|
|
f0(ASTMultiPtr());
|
|
}
|