1 /* Test __attribute__ ((unavailable)) */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
11 + (int) unavailableClassMethod: (id)firstObject, ... __attribute__((sentinel)) __attribute__((unavailable));
12 - (int) unavailableInstanceMethod: (id)firstobject, ... __attribute__((sentinel)) __attribute__((unavailable));
15 /* Test that unavailability errors are produced even if the method is
16 also marked with another attribute too (this is to test the
17 processing of multiple attributes). */
20 MyClass *object = nil;
22 [MyClass unavailableClassMethod: object, nil]; /* { dg-error "is unavailable" } */
23 [object unavailableInstanceMethod: object, nil]; /* { dg-error "is unavailable" } */