testcase for recent bugfix
[oota-llvm.git] / test / CFrontend / 2005-12-04-AttributeUsed.c
1 // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
2
3 int X __attribute__((used));
4 int Y;
5
6 __attribute__((used)) void foo() {}
7