Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjC/generic-selection.m @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 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 | |
15 void test0(A *a) { | |
16 int kind = _Generic(a.x, id : 0, int : 1, float : 2); | |
17 } |