summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/attr-nodebug.m
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2016-04-29 17:03:34 +0000
committerPaul Robinson <paul.robinson@sony.com>2016-04-29 17:03:34 +0000
commite801f6a7f4448be91f7598818af92b3f0ec9f36a (patch)
tree9d9e3c5453676fa20db93aa38accf645860cb090 /clang/test/SemaObjC/attr-nodebug.m
parentfa3e04298b65abf1ef34187ab45db8b16329d4bf (diff)
downloadbcm5719-llvm-e801f6a7f4448be91f7598818af92b3f0ec9f36a.tar.gz
bcm5719-llvm-e801f6a7f4448be91f7598818af92b3f0ec9f36a.zip
Add a Subjects line to NoDebugAttr [NFC].
The 'nodebug' attribute had hand-coded constraints; replace those with a Subjects line in Attr.td. Also add a missing test to verify the attribute is okay on an Objective-C method. Differential Revision: http://reviews.llvm.org/D19689 llvm-svn: 268065
Diffstat (limited to 'clang/test/SemaObjC/attr-nodebug.m')
-rw-r--r--clang/test/SemaObjC/attr-nodebug.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/attr-nodebug.m b/clang/test/SemaObjC/attr-nodebug.m
new file mode 100644
index 00000000000..7cf8e6cfbc8
--- /dev/null
+++ b/clang/test/SemaObjC/attr-nodebug.m
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
+@interface NSObject
+- (void)doSomething __attribute__((nodebug));
+@end
OpenPOWER on IntegriCloud