[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / attr-visibility.cpp
blob05aa5a33c72e83ec271d890a463f40743050a481
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template <class Element>
4 void foo() {
6 template <>
7 __attribute__((visibility("hidden"))) // expected-note {{previous attribute is here}}
8 void foo<int>();
10 template <>
11 void foo<int>();
13 template <>
14 __attribute__((visibility("default"))) // expected-error {{visibility does not match previous declaration}}
15 void foo<int>() {
18 struct x3 {
19 static int y;
20 } __attribute((visibility("default"))); // expected-warning {{attribute 'visibility' after definition is ignored}}