1f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -fsyntax-only -verify 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc struct X { 4f4a2713aSLionel Sambuc public __attribute__((unavailable)): // expected-error {{access specifier can only have annotation attributes}} 5f4a2713aSLionel Sambuc void foo(); 6f4a2713aSLionel Sambuc private __attribute__((annotate("foobar"))): 7f4a2713aSLionel Sambuc void bar(); 8*0a6a1f1dSLionel Sambuc private __attribute__((annotate())): // expected-error {{'annotate' attribute takes one argument}} 9f4a2713aSLionel Sambuc }; 10f4a2713aSLionel Sambuc f(X x)11f4a2713aSLionel Sambucvoid f(X x) { 12f4a2713aSLionel Sambuc x.foo(); 13f4a2713aSLionel Sambuc } 14