brintos

brintos / llvm-project-archived public Read only

0
0
Text · 955 B · f0f8fff Raw
40 lines · plain
1// RUN: %clang_cc1 -verify -Wno-objc-root-class  -fsyntax-only  %s2 3__attribute__((objc_nonlazy_class))4@interface A5@end6@implementation A7@end8 9__attribute__((objc_nonlazy_class)) int X; // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}10 11__attribute__((objc_nonlazy_class()))12@interface B13@end14@implementation B15@end16 17__attribute__((objc_nonlazy_class("foo"))) // expected-error{{'objc_nonlazy_class' attribute takes no arguments}}18@interface C19@end20@implementation C21@end22 23__attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}24@protocol B25@end26 27__attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}28void foo(void);29 30@interface E31@end32 33__attribute__((objc_nonlazy_class))34@implementation E35@end36 37__attribute__((objc_nonlazy_class))38@implementation E (MyCat)39@end40