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 tenth batch of tests being updated (there are a significant number of other tests left to be updated).
15 lines
280 B
C
15 lines
280 B
C
// UNSUPPORTED: -zos, -aix
|
|
// RUN: %clang_cc1 -emit-llvm %s -o %t
|
|
|
|
typedef const struct __CFString * CFStringRef;
|
|
|
|
#define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x)
|
|
|
|
void f(void) {
|
|
CFSTR("Hello, World!");
|
|
}
|
|
|
|
// rdar://6151192
|
|
void *G = CFSTR("yo joe");
|
|
|