Add testcase
[oota-llvm.git] / test / CFrontend / 2005-12-04-AttributeUsed.c
index e19d348806302106582595bff517c692c76be6c2..33e27e89f4c8116761a36fdfded8474244101094 100644 (file)
@@ -1,8 +1,8 @@
-// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
+// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | \
+// RUN:   grep llvm.used | grep foo | grep X
 
 int X __attribute__((used));
 int Y;
 
-void foo() __attribute__((used));
+__attribute__((used)) void foo() {}
 
-void foo() {}