Add a test showing that nodebug is accepted in methods too. Patch by

Paul Robinson.

llvm-svn: 166606
This commit is contained in:
Rafael Espindola 2012-10-24 18:34:26 +00:00
parent e26c5571b2
commit c9d17591d9
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: %clang_cc1 %s -verify -fsyntax-only
// Note: most of the 'nodebug' tests are in attr-nodebug.c.
// expected-no-diagnostics
class c {
void t3() __attribute__((nodebug));
};