> > Okay, itty bitty new C++ only test patch attached.
>
> Almost there. It should probably go to test/SemaCXX.
Picky, picky, picky.  :-)  Revised patch and log comment:


Add a test to verify __attribute__((nodebug)) permitted on a method.
--paulr
Index: test/SemaCXX/attr-nodebug.cpp
===================================================================
--- test/SemaCXX/attr-nodebug.cpp       (revision 0)
+++ test/SemaCXX/attr-nodebug.cpp       (revision 0)
@@ -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));
+};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to