Debian Codegraph @

clang/test/Parser/c2x-attributes.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3
4 enum __attribute__((deprecated)) E1 : int; // ok
5 enum [[deprecated]] E2 : int;
6
7 @interface Base
8 @end
9
10 @interface S : Base
11 - (void) bar;
12 @end
13
14 @interface T : Base
15 - (S *) foo;
16 @end
17
18
19 void f(T *t) {
20 [[]][[t foo] bar];
21 }