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