From c9d17591d990b036df70bce2ed176357863cd417 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 24 Oct 2012 18:34:26 +0000 Subject: [PATCH] Add a test showing that nodebug is accepted in methods too. Patch by Paul Robinson. llvm-svn: 166606 --- clang/test/SemaCXX/attr-nodebug.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/SemaCXX/attr-nodebug.cpp diff --git a/clang/test/SemaCXX/attr-nodebug.cpp b/clang/test/SemaCXX/attr-nodebug.cpp new file mode 100644 index 0000000..b441da2 --- /dev/null +++ b/clang/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)); +}; -- 2.7.4