summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-11-02 16:46:17 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-11-02 16:46:17 +0000
commite4915157303b6c61a653c8da1b7017ed089e51f8 (patch)
tree3ded031fff9a7d737ec6412628c0619842379409 /test
parentfc09f6420909a1f3ff1bcbbddc6fbdd9eb8bb8cb (diff)
downloadllvm-e4915157303b6c61a653c8da1b7017ed089e51f8.tar.gz
llvm-e4915157303b6c61a653c8da1b7017ed089e51f8.tar.bz2
llvm-e4915157303b6c61a653c8da1b7017ed089e51f8.tar.xz
Testcase for PR2691
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/2008-11-02-WeakAlias.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/FrontendC/2008-11-02-WeakAlias.c b/test/FrontendC/2008-11-02-WeakAlias.c
new file mode 100644
index 0000000000..4bdc5c7bec
--- /dev/null
+++ b/test/FrontendC/2008-11-02-WeakAlias.c
@@ -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