xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/attr-nodebug.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -std=c++11 -verify -fsyntax-only
2f4a2713aSLionel Sambuc // Note: most of the 'nodebug' tests are in attr-nodebug.c.
3f4a2713aSLionel Sambuc 
4f4a2713aSLionel Sambuc // expected-no-diagnostics
5f4a2713aSLionel Sambuc class c {
6f4a2713aSLionel Sambuc   void t3() __attribute__((nodebug));
7f4a2713aSLionel Sambuc };
8*0a6a1f1dSLionel Sambuc 
f()9*0a6a1f1dSLionel Sambuc [[gnu::nodebug]] void f() {}
10