summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/PR5834-constructor-conversion.cpp
blob: 044d8e555d7c2c8b8bce270f504ccb127c545aa0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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());
}