From e801f6a7f4448be91f7598818af92b3f0ec9f36a Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Fri, 29 Apr 2016 17:03:34 +0000 Subject: 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 --- clang/test/Sema/attr-nodebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/attr-nodebug.c') 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)); -- cgit v1.2.3