llvm-6502/test/CFrontend/2005-12-04-AttributeUsed.c

9 lines
173 B
C
Raw Normal View History

// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
int X __attribute__((used));
int Y;
void foo() __attribute__((used));
void foo() {}