1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
2
3 // CHECK: @llvm.used = appending global [2 x ptr] [ptr @foo, ptr @X], section "llvm.metadata"
4 int X __attribute__((used));
5 int Y;
6
foo(void)7 __attribute__((used)) void foo(void) {}
8