summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/merge-attrs.c
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-06-01 22:53:53 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-06-01 22:53:53 +0000
commit3fe4651e2ebc5f94dcefb0691c7bcd93ccd827d9 (patch)
tree6b7e4faaea7d260e4af1a38ed65a26a275d6bda0 /clang/test/CodeGen/merge-attrs.c
parent38099c1b6ef26fb6651f2aaa700c3c1de6e1c2ee (diff)
downloadbcm5719-llvm-3fe4651e2ebc5f94dcefb0691c7bcd93ccd827d9.tar.gz
bcm5719-llvm-3fe4651e2ebc5f94dcefb0691c7bcd93ccd827d9.zip
fix decl attributes cleaning
this plugs the leak of attributes and also fixes a crash in the test llvm-svn: 51862
Diffstat (limited to 'clang/test/CodeGen/merge-attrs.c')
-rw-r--r--clang/test/CodeGen/merge-attrs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/merge-attrs.c b/clang/test/CodeGen/merge-attrs.c
new file mode 100644
index 00000000000..5ac0217e2b8
--- /dev/null
+++ b/clang/test/CodeGen/merge-attrs.c
@@ -0,0 +1,13 @@
+// RUN: clang %s -emit-llvm
+
+void *malloc(int size) __attribute__ ((__nothrow__));
+
+inline static void __zend_malloc() {
+ malloc(1);
+}
+
+void *malloc(int size) __attribute__ ((__nothrow__));
+
+void fontFetch() {
+ __zend_malloc(1);
+}
OpenPOWER on IntegriCloud