[flang] Update CommandTest for AIX (NFC) (#118403)
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p23.cpp
blob683392c58915386c41815a7f09ed8fa681edc14d
1 // RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify %s
3 template<> // expected-error {{extraneous template parameter list in template specialization}}
4 void f(auto);
6 template<typename>
7 void f(auto);
9 template<typename T>
10 struct A {
11 void g(auto);
14 template<typename T>
15 void A<T>::g(auto) { }
17 template<>
18 void A<int>::g(auto) { }
20 template<>
21 template<> // expected-error {{extraneous template parameter list in template specialization}}
22 void A<long>::g(auto) { }