]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/PCH/remap-file-from-pch.cpp
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / PCH / remap-file-from-pch.cpp
1 //  %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
4 // RUN: not %clang_cc1 %s -include-pch %t.pch -remap-file "%s.h;%s.remap.h" -fsyntax-only 2>&1 | FileCheck %s
5
6 const char *str = STR;
7 int ge = zool;
8
9 // CHECK: file '{{.*[/\\]}}remap-file-from-pch.cpp.h' from the precompiled header has been overridden
10 // CHECK: use of undeclared identifier 'zool'