Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
Anders Carlsson | d87df37 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 2 | |
Nick Lewycky | 78d1a10 | 2012-07-24 01:40:49 +0000 | [diff] [blame] | 3 | int a __attribute__((nodebug)); |
| 4 | |
| 5 | void b() { |
| 6 | int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}} |
| 7 | } |
Anders Carlsson | d87df37 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 8 | |
| 9 | void t1() __attribute__((nodebug)); |
| 10 | |
John McCall | bdc49d3 | 2011-03-02 12:15:05 +0000 | [diff] [blame] | 11 | void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}} |