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.
22 lines
327 B
22 lines
327 B
// RUN: %clang_cc1 -fsyntax-only -fdouble-square-bracket-attributes -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
enum __attribute__((deprecated)) E1 : int; // ok
|
|
enum [[deprecated]] E2 : int;
|
|
|
|
@interface Base
|
|
@end
|
|
|
|
@interface S : Base
|
|
- (void) bar;
|
|
@end
|
|
|
|
@interface T : Base
|
|
- (S *) foo;
|
|
@end
|
|
|
|
|
|
void f(T *t) {
|
|
[[]][[t foo] bar];
|
|
}
|