Rafael Espindola | 87198cd | 2013-08-16 23:18:50 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
Aaron Ballman | 88fe322 | 2013-12-26 17:30:44 +0000 | [diff] [blame] | 3 | extern char test1[] __attribute__((used)); // expected-warning {{'used' attribute ignored}} |
4 | extern const char test2[] __attribute__((used)); // expected-warning {{'used' attribute ignored}} | ||||
Rafael Espindola | 87198cd | 2013-08-16 23:18:50 +0000 | [diff] [blame] | 5 | extern const char test3[] __attribute__((used)) = ""; |