summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-nodebug.c
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/Sema/attr-nodebug.c
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/Sema/attr-nodebug.c')
-rw-r--r--clang/test/Sema/attr-nodebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/attr-nodebug.c b/clang/test/Sema/attr-nodebug.c
index 03ec49b850d..39643bfb70d 100644
--- a/clang/test/Sema/attr-nodebug.c
+++ b/clang/test/Sema/attr-nodebug.c
@@ -3,7 +3,7 @@
int a __attribute__((nodebug));
void b() {
- int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}}
+ int b __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions and global variables}}
}
void t1() __attribute__((nodebug));
OpenPOWER on IntegriCloud