
A significant number of our tests in C accidentally use functions without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the final batch of tests being updated to add prototypes, hopefully.
14 lines
275 B
C
14 lines
275 B
C
// RUN: %clang_cc1 %s -emit-llvm -o %t
|
|
|
|
void *malloc(__SIZE_TYPE__ size) __attribute__ ((__nothrow__));
|
|
|
|
inline static void __zend_malloc(int) {
|
|
malloc(1);
|
|
}
|
|
|
|
void *malloc(__SIZE_TYPE__ size) __attribute__ ((__nothrow__));
|
|
|
|
void fontFetch(void) {
|
|
__zend_malloc(1);
|
|
}
|