summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2016-06-16 00:42:36 +0000
committerPaul Robinson <paul.robinson@sony.com>2016-06-16 00:42:36 +0000
commitafd2dde2fdf23658cd0cbe55175953e735fcb62a (patch)
treeed9901b2430749e12ded8fce7ab96fd98298f2e7 /clang/test/Sema
parentd01720d46d9456fce63f58497f56e106d2311efc (diff)
downloadbcm5719-llvm-afd2dde2fdf23658cd0cbe55175953e735fcb62a.tar.gz
bcm5719-llvm-afd2dde2fdf23658cd0cbe55175953e735fcb62a.zip
Allow 'nodebug' on local variables.
Parameters and non-static members of aggregates are still excluded, and probably should remain that way. Differential Revision: http://reviews.llvm.org/D19754 llvm-svn: 272859
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/attr-nodebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/attr-nodebug.c b/clang/test/Sema/attr-nodebug.c
index 39643bfb70d..e7ca58d3ba1 100644
--- a/clang/test/Sema/attr-nodebug.c
+++ b/clang/test/Sema/attr-nodebug.c
@@ -2,8 +2,8 @@
int a __attribute__((nodebug));
-void b() {
- int b __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions and global variables}}
+void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to variables and functions}}
+ int b __attribute__((nodebug));
}
void t1() __attribute__((nodebug));
OpenPOWER on IntegriCloud