repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git]
/
clang
/
test
/
Parser
/
c2x-attributes.m
blob
f4610416cddc746255e3dff650faa3e5a579d254
1
// RUN: %clang_cc1 -fsyntax-only -fdouble-square-bracket-attributes -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
}