attr-nodebug.c revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1// RUN: clang-cc %s -verify -fsyntax-only
2
3int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to function types}}
4
5void t1() __attribute__((nodebug));
6
7void t2() __attribute__((nodebug(2))); // expected-error {{attribute requires 0 argument(s)}}
8
9