From 946fa657a70408719d2cafa542e396b002d61316 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166606 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/attr-nodebug.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/SemaCXX/attr-nodebug.cpp 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)); +}; -- 2.40.0