brintos

brintos / llvm-project-archived public Read only

0
0
Text · 834 B · 45ccac9 Raw
9 lines · c
1// RUN: %clang_cc1 -Wno-error=incompatible-pointer-types -remap-file "%s;%S/Inputs/remapped-file" -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-EXIST %s2// RUN: %clang_cc1 -Wno-error=incompatible-pointer-types -remap-file "%S/nonexistent.c;%S/Inputs/remapped-file" -fsyntax-only %S/nonexistent.c 2>&1 | FileCheck -check-prefix=CHECK-NONEXIST %s3// RUN: %clang_cc1 -Wno-error=incompatible-pointer-types -remap-file "%S/nonexistent.c;%S/Inputs/remapped-file-2" -remap-file "%S%{fs-sep}nonexistent.h;%S/Inputs/remapped-file-3" -fsyntax-only %S/nonexistent.c 2>&1 | FileCheck -check-prefix=CHECK-HEADER %s4 5// CHECK-EXIST: remap-file.c:1:28: warning: incompatible pointer types6// CHECK-NONEXIST: nonexistent.c:1:28: warning: incompatible pointer types7// CHECK-HEADER: nonexistent.c:3:23: warning: incompatible pointer types8int9