Add a test showing that nodebug is accepted in methods too. Patch by
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Oct 2012 18:34:26 +0000 (18:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Oct 2012 18:34:26 +0000 (18:34 +0000)
Paul Robinson.

llvm-svn: 166606

clang/test/SemaCXX/attr-nodebug.cpp [new file with mode: 0644]

diff --git a/clang/test/SemaCXX/attr-nodebug.cpp b/clang/test/SemaCXX/attr-nodebug.cpp
new file mode 100644 (file)
index 0000000..b441da2
--- /dev/null
@@ -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));
+};