// RUN: %clang_cc1 %s -fsyntax-only -verify
constchar* test1 =1?"i":1==1?"v":"r";void_efree(void*ptr);voidfree(void*ptr);int_php_stream_free1(void){return(1?free(0):_efree(0));// expected-error {{returning 'void' from a function with incompatible result type 'int'}}
}int_php_stream_free2(void){return(1?_efree(0):free(0));// expected-error {{returning 'void' from a function with incompatible result type 'int'}}
}voidpr39809(void){_Generic(0?(intconst*)0:(void*)0,intconst*:(void)0);_Generic(0?(intconst*)0:(void*)1,voidconst*:(void)0);_Generic(0?(intvolatile*)0:(voidconst*)1,voidvolatileconst*:(void)0);_Generic(0?(intvolatile*)0:(voidconst*)0,voidvolatileconst*:(void)0);}