1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template <class Element
>
7 __attribute__((visibility("hidden"))) // expected-note {{previous attribute is here}}
14 __attribute__((visibility("default"))) // expected-error {{visibility does not match previous declaration}}
20 } __attribute((visibility("default"))); // expected-warning {{attribute 'visibility' after definition is ignored}}