From 3fe4651e2ebc5f94dcefb0691c7bcd93ccd827d9 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 1 Jun 2008 22:53:53 +0000 Subject: fix decl attributes cleaning this plugs the leak of attributes and also fixes a crash in the test llvm-svn: 51862 --- clang/test/CodeGen/merge-attrs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 clang/test/CodeGen/merge-attrs.c (limited to 'clang/test/CodeGen/merge-attrs.c') 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); +} -- cgit v1.2.3