2012-01-25 06:32:46 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c %s -fsyntax-only -verify
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
void f1(id arg) {
|
2012-01-28 07:21:02 +08:00
|
|
|
NSLog(@"%@", arg); // expected-warning {{implicitly declaring library function 'NSLog' with type 'void (id, ...)'}} \
|
2014-07-12 04:53:51 +08:00
|
|
|
// expected-note {{include the header <Foundation/NSObjCRuntime.h> or explicitly provide a declaration for 'NSLog'}}
|
2012-01-25 06:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void f2(id str, va_list args) {
|
2012-01-28 07:21:02 +08:00
|
|
|
NSLogv(@"%@", args); // expected-warning {{implicitly declaring library function 'NSLogv' with type }} \
|
2014-07-12 04:53:51 +08:00
|
|
|
// expected-note {{include the header <Foundation/NSObjCRuntime.h> or explicitly provide a declaration for 'NSLogv'}}
|
2012-01-25 06:32:46 +08:00
|
|
|
}
|