diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-24 18:34:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-24 18:34:26 +0000 |
commit | c9d17591d990b036df70bce2ed176357863cd417 (patch) | |
tree | c1d7152668f3749276a88793e18d1739a50bdf23 /clang/test/SemaCXX/attr-nodebug.cpp | |
parent | e26c5571b201d4fc87342f61ce5339e935e8862e (diff) | |
download | bcm5719-llvm-c9d17591d990b036df70bce2ed176357863cd417.tar.gz bcm5719-llvm-c9d17591d990b036df70bce2ed176357863cd417.zip |
Add a test showing that nodebug is accepted in methods too. Patch by
Paul Robinson.
llvm-svn: 166606
Diffstat (limited to 'clang/test/SemaCXX/attr-nodebug.cpp')
-rw-r--r-- | clang/test/SemaCXX/attr-nodebug.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/attr-nodebug.cpp b/clang/test/SemaCXX/attr-nodebug.cpp new file mode 100644 index 00000000000..b441da21f8e --- /dev/null +++ b/clang/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)); +}; |