summaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-used.cpp
blob: 65df861f8321672244be9bfe52d33fea3abd6efc (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %s

extern char test1[] __attribute__((used)); // expected-warning {{'used' attribute ignored}}
extern const char test2[] __attribute__((used)); // expected-warning {{'used' attribute ignored}}
extern const char test3[] __attribute__((used)) = "";