[cfe-commits] r166606 - /cfe/trunk/test/SemaCXX/attr-nodebug.cpp

Rafael Espindola rafael.espindola at gmail.com
Wed Oct 24 11:34:27 PDT 2012


Author: rafael
Date: Wed Oct 24 13:34:26 2012
New Revision: 166606

URL: http://llvm.org/viewvc/llvm-project?rev=166606&view=rev
Log:
Add a test showing that nodebug is accepted in methods too. Patch by
Paul Robinson.

Added:
    cfe/trunk/test/SemaCXX/attr-nodebug.cpp

Added: cfe/trunk/test/SemaCXX/attr-nodebug.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/attr-nodebug.cpp?rev=166606&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/attr-nodebug.cpp (added)
+++ cfe/trunk/test/SemaCXX/attr-nodebug.cpp Wed Oct 24 13:34:26 2012
@@ -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));
+};





More information about the cfe-commits mailing list