Use the -emit-llvm switch to generate LLVM assembly that can be parsed
[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 void foo() __attribute__((used));
7
8 void foo() {}