blob: e7ca58d3ba15ad82c78e5c192cfd5ccb29ec2724 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Anders Carlsson76187b42009-02-13 06:46:13 +00002
Nick Lewycky08597072012-07-24 01:40:49 +00003int a __attribute__((nodebug));
4
Paul Robinsonafd2dde2016-06-16 00:42:36 +00005void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to variables and functions}}
6 int b __attribute__((nodebug));
Aaron Ballmanb7243382013-07-23 19:30:11 +00007}
Anders Carlsson76187b42009-02-13 06:46:13 +00008
9void t1() __attribute__((nodebug));
10
Aaron Ballmanb7243382013-07-23 19:30:11 +000011void t2() __attribute__((nodebug(2))); // expected-error {{'nodebug' attribute takes no arguments}}