llvm-gcc3 is gone
[oota-llvm.git] / test / CFrontend / 2005-12-04-AttributeUsed.c
index 1b5a3b2276a37b541e901ed9a922742b2438e27d..a3da1c3e6411fb55148257f60a00ea1255472d04 100644 (file)
@@ -1,8 +1,7 @@
-// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
+// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
 
 int X __attribute__((used));
 int Y;
 
-void foo() __attribute__((used));
+__attribute__((used)) void foo() {}
 
-void foo() {}