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 | |
John McCall | d6b8de0 | 2011-01-25 03:51:08 +0000 | [diff] [blame] | 3 | int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions}} |
Anders Carlsson | d87df37 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 4 | |
| 5 | void t1() __attribute__((nodebug)); |
| 6 | |
John McCall | bdc49d3 | 2011-03-02 12:15:05 +0000 | [diff] [blame] | 7 | void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}} |
Anders Carlsson | d87df37 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 8 | |