summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/attributes/invalid-attribute-1.mm
blob: 96ee178d760cf2113c4891c6fadbb88b61ad9f0c (plain)
1
2
3
4
5
6
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, January 2011.  */
/* { dg-do compile } */

#include <objc/objc.h>

__attribute__ ((deprecated)) @class A; /* { dg-error "attributes may not be specified before the ..class. Objective-C.. keyword" } */