[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / 2005-12-04-AttributeUsed.c
blobbd232831fe1a6d43425342e9b4a5265717fbb777
1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
3 // CHECK: @llvm.used = appending global [2 x ptr] [ptr @foo, ptr @X], section "llvm.metadata"
4 int X __attribute__((used));
5 int Y;
7 __attribute__((used)) void foo(void) {}