view gcc/testsuite/objc.dg/attributes/class-attribute-3.m @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
/* { dg-do compile } */

/* Test that you get a warning when an unknown class attribute is ignored.  */

#include <objc/objc.h>

__attribute__ ((unknown_attribute))
@interface MyClass
{ /* { dg-warning "ignored" } */
  Class isa;
}
+ (id) new;
@end