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