New testcase for PR660
authorChris Lattner <sabre@nondot.org>
Mon, 5 Dec 2005 04:48:12 +0000 (04:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Dec 2005 04:48:12 +0000 (04:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24601 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2005-12-04-AttributeUsed.c [new file with mode: 0644]

diff --git a/test/CFrontend/2005-12-04-AttributeUsed.c b/test/CFrontend/2005-12-04-AttributeUsed.c
new file mode 100644 (file)
index 0000000..1b5a3b2
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
+
+int X __attribute__((used));
+int Y;
+
+void foo() __attribute__((used));
+
+void foo() {}