bolt/deps/llvm-18.1.8/clang/test/SemaObjC/generic-selection.m

17 lines
265 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
__attribute__((objc_root_class))
@interface Root {
Class isa;
}
@end
@interface A
@property (strong) id x;
@end
void test0(A *a) {
int kind = _Generic(a.x, id : 0, int : 1, float : 2);
}