[Flang][OpenMP] Use internal linkage for OpenMP code-gen'ed helper functions (#117911)
[llvm-project.git] / clang / test / Driver / implicit-function-as-error.c
bloba7f815c8ed69b311673c5af3942ff17846f02d16
1 // RUN: %clang -target x86_64-apple-darwin -mios-simulator-version-min=7 -fsyntax-only %s -Xclang -verify
2 // RUN: %clang -target x86_64-apple-darwin -arch arm64 -target x86_64-apple-darwin -mios-version-min=7 -fsyntax-only %s -Xclang -verify
3 // RUN: %clang -target armv7k-apple-watchos -arch armv7k -target armv7k-apple-watchos -fsyntax-only %s -Xclang -verify
5 // For 64-bit iOS, automatically promote -Wimplicit-function-declaration
6 // to an error.
8 void radar_10894044(void) {
9 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'}}
10 radar_10894044_not_declared(); // expected-error {{call to undeclared function 'radar_10894044_not_declared'; ISO C99 and later do not support implicit function declarations}}