diff options
Diffstat (limited to 'test/SemaObjC/nsobject-attribute.m')
-rw-r--r-- | test/SemaObjC/nsobject-attribute.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaObjC/nsobject-attribute.m b/test/SemaObjC/nsobject-attribute.m index b794eafc9ed7..ead222c3310b 100644 --- a/test/SemaObjC/nsobject-attribute.m +++ b/test/SemaObjC/nsobject-attribute.m @@ -1,6 +1,8 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s typedef struct CGColor * __attribute__ ((NSObject)) CGColorRef; +typedef struct CGColor * __attribute__((NSObject(12))) Illegal; // expected-error {{'NSObject' attribute takes no arguments}} + static int count; static CGColorRef tmp = 0; |