You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
346 B

// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
template<typename> void func();
template<> void func<int>() = delete;
template<typename> void func2();
template<> void func2<int>(); // expected-note {{previous declaration is here}}
template<> void func2<int>() = delete; // expected-error {{deleted definition must be first declaration}}