blob: 3cc4088e4b3cf6fa6aa10864aecb09779e757eee [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Anders Carlssond87df372009-02-13 06:46:13 +00002
Nick Lewycky78d1a102012-07-24 01:40:49 +00003int a __attribute__((nodebug));
4
5void b() {
6 int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}}
7}
Anders Carlssond87df372009-02-13 06:46:13 +00008
9void t1() __attribute__((nodebug));
10
John McCallbdc49d32011-03-02 12:15:05 +000011void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}}