blob: 017285385a0b0cb3e2b721efd9400d761f404ebf [file] [log] [blame]
Argyrios Kyrtzidis6eec06d2012-05-03 21:50:39 +00001// %clang_cc1 -remap-file "%s;%S/Inputs/remapped-file" -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-EXIST %s
2
3// RUN: %clang_cc1 -x c++-header %s.h -emit-pch -o %t.pch
Rafael Espindola925213b2013-07-04 16:16:58 +00004// RUN: not %clang_cc1 %s -include-pch %t.pch -remap-file "%s.h;%s.remap.h" -fsyntax-only 2>&1 | FileCheck %s
Argyrios Kyrtzidis6eec06d2012-05-03 21:50:39 +00005
6const char *str = STR;
7int ge = zool;
8
NAKAMURA Takumidcb0e392012-05-04 03:42:28 +00009// CHECK: file '{{.*[/\\]}}remap-file-from-pch.cpp.h' from the precompiled header has been overridden
Argyrios Kyrtzidis6eec06d2012-05-03 21:50:39 +000010// CHECK: use of undeclared identifier 'zool'