From: Chris Lattner Date: Mon, 5 Dec 2005 04:48:12 +0000 (+0000) Subject: New testcase for PR660 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=76fb23c0142f7e7e7637181b4888cc8fe7eaf588;p=oota-llvm.git New testcase for PR660 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2005-12-04-AttributeUsed.c b/test/CFrontend/2005-12-04-AttributeUsed.c new file mode 100644 index 00000000000..1b5a3b2276a --- /dev/null +++ b/test/CFrontend/2005-12-04-AttributeUsed.c @@ -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() {}