bolt/deps/llvm-18.1.8/clang/test/Parser/c2x-attributes.m

22 lines
292 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -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];
}