1*67e74705SXin Li// RUN: %clang_cc1 -x objective-c %s -fsyntax-only -verify 2*67e74705SXin Li 3*67e74705SXin Li#include <stdarg.h> 4*67e74705SXin Li 5*67e74705SXin Livoid f1(id arg) { 6*67e74705SXin Li NSLog(@"%@", arg); // expected-warning {{implicitly declaring library function 'NSLog' with type 'void (id, ...)'}} \ 7*67e74705SXin Li // expected-note {{include the header <Foundation/NSObjCRuntime.h> or explicitly provide a declaration for 'NSLog'}} 8*67e74705SXin Li} 9*67e74705SXin Li 10*67e74705SXin Livoid f2(id str, va_list args) { 11*67e74705SXin Li NSLogv(@"%@", args); // expected-warning {{implicitly declaring library function 'NSLogv' with type }} \ 12*67e74705SXin Li // expected-note {{include the header <Foundation/NSObjCRuntime.h> or explicitly provide a declaration for 'NSLogv'}} 13*67e74705SXin Li} 14