2013-08-17 07:18:50 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
2013-12-27 01:30:44 +08:00
|
|
|
extern char test1[] __attribute__((used)); // expected-warning {{'used' attribute ignored}}
|
|
|
|
extern const char test2[] __attribute__((used)); // expected-warning {{'used' attribute ignored}}
|
2013-08-17 07:18:50 +08:00
|
|
|
extern const char test3[] __attribute__((used)) = "";
|