blob: 6865de060266cd31bac9a6dfbc0da77c48e774e0 [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
John McCalld6b8de02011-01-25 03:51:08 +00003int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions}}
Anders Carlssond87df372009-02-13 06:46:13 +00004
5void t1() __attribute__((nodebug));
6
7void t2() __attribute__((nodebug(2))); // expected-error {{attribute requires 0 argument(s)}}
8