OSDN Git Service

Testcase for PR2691
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 2 Nov 2008 16:46:17 +0000 (16:46 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 2 Nov 2008 16:46:17 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58567 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2008-11-02-WeakAlias.c [new file with mode: 0644]

diff --git a/test/FrontendC/2008-11-02-WeakAlias.c b/test/FrontendC/2008-11-02-WeakAlias.c
new file mode 100644 (file)
index 0000000..4bdc5c7
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: %llvmgcc -S -emit-llvm -o - %s | grep weak
+// PR2691
+
+void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
+void native_init_IRQ(void) {}
\ No newline at end of file