mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 13:06:40 +00:00

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 fourth batch of tests being updated (there are a significant number of other tests left to be updated).
15 lines
364 B
Objective-C
15 lines
364 B
Objective-C
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
|
// expected-no-diagnostics
|
|
@class NSString;
|
|
extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
|
|
|
|
int main(void) {
|
|
NSLog(@"Hi…");
|
|
NSLog(@"Exposé");
|
|
NSLog(@"\U00010400\U0001D12B");
|
|
NSLog(@"hello \u2192 \u2603 \u2190 world");
|
|
NSLog(@"hello → ☃ ← world");
|
|
return 0;
|
|
}
|
|
|