brintos

brintos / llvm-project-archived public Read only

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