blob: 9cc8d3de1e52da08c0e5bb0c6237c41277963ad5 [file] [log] [blame]
/* APPLE LOCAL file 4695109 */
/* Protocol meta-data for protocol used in @protocol expression must be generated. */
/* { dg-options "-mmacosx-version-min=10.5 -fobjc-abi-version=2" } */
/* { dg-do compile { target *-*-darwin* } } */
@protocol Proto1
+classMethod;
@end
@protocol Proto2
+classMethod2;
@end
int main() {
return (long) @protocol(Proto1);
}
/* { dg-final { scan-assembler "L_OBJC_PROTOCOL_\\\$_Proto1:" } } */
/* { dg-final { scan-assembler-not "_OBJC_PROTOCOL_\\\$_Proto2" } } */