xref: /llvm-project/clang/test/SemaTemplate/unresolved-construct.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
19ca5c425SRichard Smith // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
36336f296SDouglas Gregor class A
46336f296SDouglas Gregor {
56336f296SDouglas Gregor public:
A()66336f296SDouglas Gregor     A() {}
76336f296SDouglas Gregor 
86336f296SDouglas Gregor     template <class _F>
96336f296SDouglas Gregor         explicit A(_F&& __f);
106336f296SDouglas Gregor 
A(A &&)116336f296SDouglas Gregor     A(A&&) {}
operator =(A &&)126336f296SDouglas Gregor     A& operator=(A&&) {return *this;}
136336f296SDouglas Gregor };
146336f296SDouglas Gregor 
156336f296SDouglas Gregor template <class T>
f(T t)166336f296SDouglas Gregor void f(T t)
176336f296SDouglas Gregor {
186336f296SDouglas Gregor   A a;
196336f296SDouglas Gregor   a = f(t);
206336f296SDouglas Gregor }
21