diff options
Diffstat (limited to 'test/Sema/attr-nodebug.c')
-rw-r--r-- | test/Sema/attr-nodebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/attr-nodebug.c b/test/Sema/attr-nodebug.c index 03ec49b850d6..e7ca58d3ba15 100644 --- a/test/Sema/attr-nodebug.c +++ b/test/Sema/attr-nodebug.c @@ -2,8 +2,8 @@ int a __attribute__((nodebug)); -void b() { - int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}} +void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to variables and functions}} + int b __attribute__((nodebug)); } void t1() __attribute__((nodebug)); |