freebsd-nq/test/CodeGenCXX/PR5834-constructor-conversion.cpp
2010-01-01 10:34:51 +00:00

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());
}