Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -remap-file "%s;%S/Inputs/remapped-file" -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-EXIST %s |
| 2 | // RUN: %clang_cc1 -remap-file "%S/nonexistent.c;%S/Inputs/remapped-file" -fsyntax-only %S/nonexistent.c 2>&1 | FileCheck -check-prefix=CHECK-NONEXIST %s |
| 3 | // RUN: %clang_cc1 -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 |
Douglas Gregor | 716f0b3 | 2009-12-02 08:08:39 +0000 | [diff] [blame] | 4 | |
Douglas Gregor | 057e567 | 2009-12-02 18:12:28 +0000 | [diff] [blame] | 5 | // CHECK-EXIST: remap-file.c:1:28: warning: incompatible pointer types |
| 6 | // CHECK-NONEXIST: nonexistent.c:1:28: warning: incompatible pointer types |
| 7 | // CHECK-HEADER: nonexistent.c:3:19: warning: incompatible pointer types |
Douglas Gregor | 716f0b3 | 2009-12-02 08:08:39 +0000 | [diff] [blame] | 8 | int |