clang/test/Parser/extern-template-attributes.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++17 -fms-extensions -verify %s |
| 2 | |
| 3 | template <class> |
| 4 | struct S {}; |
| 5 | |
| 6 | [[deprecated]] extern template struct S<int>; // expected-error {{an attribute list cannot appear here}} |
| 7 | __attribute__((deprecated)) extern template struct S<int>; // expected-error {{an attribute list cannot appear here}} |
| 8 | __declspec(deprecated) extern template struct S<int>; // expected-error {{expected unqualified-id}} |