llvm-6502/test/CFrontend/2005-12-04-AttributeUsed.c
2006-09-29 17:34:56 +00:00

8 lines
172 B
C

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