llvm-for-llvmta/tools/clang/test/SemaCXX/attr-used.cpp

6 lines
289 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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)) = "";