blob: 26dc67c6de2706acb97467cec55891aee77592ba [file] [log] [blame]
Rafael Espindola4e31b4d2012-05-01 20:58:29 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
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}