xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/generic-selection.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4__attribute__((objc_root_class))
5@interface Root {
6  Class isa;
7}
8@end
9
10@interface A
11@property (strong) id x;
12@end
13
14// rdar://13193560
15void test0(A *a) {
16  int kind = _Generic(a.x, id : 0, int : 1, float : 2);
17}
18