summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitc11b47911d275d59094ebb5f7d75a774b3743dbe (patch)
tree91c93d04b5df850afaa0b5b069d98aac1de59fb0 /llvm/test
parent1bb549685b853213f76bfc78841b88da3ef3cf3d (diff)
downloadbcm5719-llvm-c11b47911d275d59094ebb5f7d75a774b3743dbe.tar.gz
bcm5719-llvm-c11b47911d275d59094ebb5f7d75a774b3743dbe.zip
Testcase for PR2691
llvm-svn: 58567
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/FrontendC/2008-11-02-WeakAlias.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2008-11-02-WeakAlias.c b/llvm/test/FrontendC/2008-11-02-WeakAlias.c
new file mode 100644
index 00000000000..4bdc5c7bec9
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud