| /* APPLE LOCAL file radar 6351990 */ |
| /* { dg-options "-Wno-objc-root-class -mmacosx-version-min=10.6 -m32 -fobjc-abi-version=2" { target powerpc*-*-darwin* i?86*-*-darwin* } } */ |
| /* { dg-options "-Wno-objc-root-class -fobjc-abi-version=2" { target arm*-*-darwin* } } */ |
| /* { dg-do compile { target *-*-darwin* } } */ |
| |
| @protocol PROTO |
| @end |
| @protocol PROTO1 |
| @end |
| @protocol PROTO2 |
| @end |
| |
| @interface INTF <PROTO, PROTO1, PROTO2> @end |
| |
| @implementation INTF @end |
| |
| int main() |
| { |
| return (long) @protocol(PROTO); + (long) @protocol(PROTO1); |
| } |
| /* { dg-final { scan-assembler "l_OBJC_PROTOCOL_\\\$_PROTO1:" } } */ |
| /* { dg-final { scan-assembler "l_OBJC_PROTOCOL_\\\$_PROTO2:" } } */ |