[libc] Build with -Wdeprecated, fix some warnings (#125373)
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.fct.def / dcl.fct.def.delete / p4.cpp
blob16fd5e6dbda168b39e51703412638d8c9b7d434c
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
3 template<typename> void func();
4 template<> void func<int>() = delete;
6 template<typename> void func2();
7 template<> void func2<int>(); // expected-note {{previous declaration is here}}
8 template<> void func2<int>() = delete; // expected-error {{deleted definition must be first declaration}}