brintos

brintos / llvm-project-archived public Read only

0
0
Text · 277 B · ef010fb Raw
21 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s2// expected-no-diagnostics3class A4{5public:6    A() {}7 8    template <class _F>9        explicit A(_F&& __f);10 11    A(A&&) {}12    A& operator=(A&&) {return *this;}13};14 15template <class T>16void f(T t)17{18  A a;19  a = f(t);20}21