aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-nodebug.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-24 18:34:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-24 18:34:26 +0000
commit946fa657a70408719d2cafa542e396b002d61316 (patch)
treeacedc3788e89aa3348f8935bd84e2c3ce10c2231 /test/SemaCXX/attr-nodebug.cpp
parent11db1824673fb9834fc414a46fb8da89221c8be3 (diff)
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
Diffstat (limited to 'test/SemaCXX/attr-nodebug.cpp')
-rw-r--r--test/SemaCXX/attr-nodebug.cpp7
1 files changed, 7 insertions, 0 deletions
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));
+};