2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
2009-02-13 14:46:13 +08:00
|
|
|
|
2011-01-25 11:51:08 +08:00
|
|
|
int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions}}
|
2009-02-13 14:46:13 +08:00
|
|
|
|
|
|
|
void t1() __attribute__((nodebug));
|
|
|
|
|
2011-03-02 20:15:05 +08:00
|
|
|
void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}}
|
2009-02-13 14:46:13 +08:00
|
|
|
|