From: Rafael Espindola Date: Wed, 24 Oct 2012 18:34:26 +0000 (+0000) Subject: Add a test showing that nodebug is accepted in methods too. Patch by X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=946fa657a70408719d2cafa542e396b002d61316;p=clang Add a test showing that nodebug is accepted in methods too. Patch by Paul Robinson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/attr-nodebug.cpp b/test/SemaCXX/attr-nodebug.cpp new file mode 100644 index 0000000000..b441da21f8 --- /dev/null +++ b/test/SemaCXX/attr-nodebug.cpp @@ -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)); +};