2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
2009-02-13 14:46:13 +08:00
|
|
|
|
2012-07-24 09:40:49 +08:00
|
|
|
int a __attribute__((nodebug));
|
|
|
|
|
|
|
|
void b() {
|
2016-04-30 01:03:34 +08:00
|
|
|
int b __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions and global variables}}
|
2013-07-24 03:30:11 +08:00
|
|
|
}
|
2009-02-13 14:46:13 +08:00
|
|
|
|
|
|
|
void t1() __attribute__((nodebug));
|
|
|
|
|
2013-07-24 03:30:11 +08:00
|
|
|
void t2() __attribute__((nodebug(2))); // expected-error {{'nodebug' attribute takes no arguments}}
|