Index: test/Sema/attr-nodebug.c =================================================================== --- test/Sema/attr-nodebug.c (revision 166444) +++ test/Sema/attr-nodebug.c (working copy) @@ -1,11 +0,0 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only - -int a __attribute__((nodebug)); - -void b() { - int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}} -} - -void t1() __attribute__((nodebug)); - -void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}} Index: test/Sema/attr-nodebug.cpp =================================================================== --- test/Sema/attr-nodebug.cpp (revision 165815) +++ test/Sema/attr-nodebug.cpp (working copy) @@ -9,3 +9,7 @@ void t1() __attribute__((nodebug)); void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}} + +class c { + void t3() __attribute__((nodebug)); +};