diff clang/test/Driver/implicit-function-as-error.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
line wrap: on
line diff
--- a/clang/test/Driver/implicit-function-as-error.c	Wed Jul 21 10:27:27 2021 +0900
+++ b/clang/test/Driver/implicit-function-as-error.c	Wed Nov 09 17:45:10 2022 +0900
@@ -5,7 +5,7 @@
 // For 64-bit iOS, automatically promote -Wimplicit-function-declaration
 // to an error.
 
-void radar_10894044() {
-  printf("Hi\n"); // expected-error {{implicitly declaring library function 'printf' with type 'int (const char *, ...)'}} expected-note {{include the header <stdio.h> or explicitly provide a declaration for 'printf'}}
-  radar_10894044_not_declared(); // expected-error {{implicit declaration of function 'radar_10894044_not_declared' is invalid in C99}}
+void radar_10894044(void) {
+  printf("Hi\n"); // expected-error {{call to undeclared library function 'printf' with type 'int (const char *, ...)'}} expected-note {{include the header <stdio.h> or explicitly provide a declaration for 'printf'}}
+  radar_10894044_not_declared(); // expected-error {{call to undeclared function 'radar_10894044_not_declared'; ISO C99 and later do not support implicit function declarations}}
 }