Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
Anders Carlsson | 76187b4 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 2 | |
John McCall | 4bb4836 | 2011-01-25 03:51:08 +0000 | [diff] [blame] | 3 | int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions}} |
Anders Carlsson | 76187b4 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 4 | |
| 5 | void t1() __attribute__((nodebug)); |
| 6 | |
John McCall | 80ee596 | 2011-03-02 12:15:05 +0000 | [diff] [blame] | 7 | void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}} |
Anders Carlsson | 76187b4 | 2009-02-13 06:46:13 +0000 | [diff] [blame] | 8 | |