1 // RUN: %clang_cc1 -verify -Wno-objc-root-class -fsyntax-only %s
3 __attribute__((objc_nonlazy_class))
9 __attribute__((objc_nonlazy_class)) int X; // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}
11 __attribute__((objc_nonlazy_class()))
17 __attribute__((objc_nonlazy_class("foo"))) // expected-error{{'objc_nonlazy_class' attribute takes no arguments}}
23 __attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}
27 __attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies to Objective-C interfaces}}
33 __attribute__((objc_nonlazy_class))
37 __attribute__((objc_nonlazy_class))
38 @implementation E (MyCat)