blob: 05aa5a33c72e83ec271d890a463f40743050a481 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
template <class Element>
void foo() {
}
template <>
__attribute__((visibility("hidden"))) // expected-note {{previous attribute is here}}
void foo<int>();
template <>
void foo<int>();
template <>
__attribute__((visibility("default"))) // expected-error {{visibility does not match previous declaration}}
void foo<int>() {
}
struct x3 {
static int y;
} __attribute((visibility("default"))); // expected-warning {{attribute 'visibility' after definition is ignored}}
|