Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 typedef struct __attribute__((ns_bridged)) test0s *test0ref;
      4 
      5 void test0func(void) __attribute__((ns_bridged)); // expected-error {{'ns_bridged' attribute only applies to structs}}
      6 
      7 union __attribute__((ns_bridged)) test0u; // expected-error {{'ns_bridged' attribute only applies to structs}}
      8 
      9 struct __attribute__((ns_bridged(Test1))) test1s;
     10 
     11 @class Test2;
     12 struct __attribute__((ns_bridged(Test2))) test2s;
     13 
     14 void Test3(void); // expected-note {{declared here}}
     15 struct __attribute__((ns_bridged(Test3))) test3s; // expected-error {{parameter of 'ns_bridged' attribute does not name an Objective-C class}}
     16