You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
380 B
14 lines
380 B
4 months ago
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
||
|
|
||
|
struct X {
|
||
|
public __attribute__((unavailable)): // expected-error {{access specifier can only have annotation attributes}}
|
||
|
void foo();
|
||
|
private __attribute__((annotate("foobar"))):
|
||
|
void bar();
|
||
|
private __attribute__((annotate())): // expected-error {{'annotate' attribute takes at least 1 argument}}
|
||
|
};
|
||
|
|
||
|
void f(X x) {
|
||
|
x.foo();
|
||
|
}
|