blob: 33e27e89f4c8116761a36fdfded8474244101094 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | \
2// RUN: grep llvm.used | grep foo | grep X
3
4int X __attribute__((used));
5int Y;
6
7__attribute__((used)) void foo() {}
8