Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / PR31422.cpp
blob0ac321d7af52c4d6d3c7fbe8268d9d6f42f0627f
1 // RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s
3 // expected-error@+3 {{cannot specify any part of a return type in the declaration of a conversion function; use an alias template to declare a conversion to 'auto (Ts &&...) const'}}
4 // expected-error@+2 {{conversion function cannot convert to a function type}}
5 struct S {
6 template <typename... Ts> operator auto()(Ts &&... xs) const;
7 };