[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / alias-unused.c
blobde9fc8cc73766238a5d2b9cc61567487f6532015
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunneeded-internal-declaration -x c -verify %s
2 // expected-no-diagnostics
3 static int f(void) { return 42; }
4 int g(void) __attribute__((alias("f")));
6 static int foo [] = { 42, 0xDEAD };
7 extern typeof(foo) bar __attribute__((unused, alias("foo")));