[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / transparent-union.m
blobcb03dfec3563d76d427e03131646be43271dd16a
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 typedef union {
4  struct xx_object_s *_do;
5  struct xx_continuation_s *_dc;
6  struct xx_queue_s *_dq;
7  struct xx_queue_attr_s *_dqa;
8  struct xx_group_s *_dg;
9  struct xx_source_s *_ds;
10  struct xx_source_attr_s *_dsa;
11  struct xx_semaphore_s *_dsema;
12 } xx_object_t __attribute__((transparent_union));
14 @interface INTF
15 - (void) doSomething : (xx_object_t) xxObject;
16 - (void)testMeth;
17 @end
19 @implementation INTF
20 - (void) doSomething : (xx_object_t) xxObject {}
21 - (void)testMeth { struct xx_queue_s *sq; [self doSomething:sq ]; }
22 @end