2009-12-03 13:32:40 +08:00
|
|
|
// RUN: clang-cc -remap-file "%s;%S/Inputs/remapped-file" -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-EXIST %s
|
|
|
|
// RUN: clang-cc -remap-file "%S/nonexistent.c;%S/Inputs/remapped-file" -fsyntax-only %S/nonexistent.c 2>&1 | FileCheck -check-prefix=CHECK-NONEXIST %s
|
|
|
|
// RUN: clang-cc -remap-file "%S/nonexistent.c;%S/Inputs/remapped-file-2" -remap-file "%S/nonexistent.h;%S/Inputs/remapped-file-3" -fsyntax-only %S/nonexistent.c 2>&1 | FileCheck -check-prefix=CHECK-HEADER %s
|
2009-12-02 16:08:39 +08:00
|
|
|
|
2009-12-03 02:12:28 +08:00
|
|
|
// CHECK-EXIST: remap-file.c:1:28: warning: incompatible pointer types
|
|
|
|
// CHECK-NONEXIST: nonexistent.c:1:28: warning: incompatible pointer types
|
|
|
|
// CHECK-HEADER: nonexistent.c:3:19: warning: incompatible pointer types
|
2009-12-02 16:08:39 +08:00
|
|
|
int
|