1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 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)); 13 14 @interface INTF 15 - (void) doSomething : (xx_object_t) xxObject; 16 - (void)testMeth; 17 @end 18 19 @implementation INTF 20 - (void) doSomething : (xx_object_t) xxObject {} 21 - (void)testMeth { struct xx_queue_s *sq; [self doSomething:sq ]; } 22 @end 23