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