2009-12-02 05:57:39 +08:00
|
|
|
// Test that the source manager has the "proper" idea about the include stack
|
|
|
|
// when using PCH.
|
|
|
|
|
|
|
|
// RUN: echo 'int x;' > %t.prefix.h
|
2011-03-28 04:00:08 +08:00
|
|
|
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -include %t.prefix.h %s 2> %t.diags.no_pch.txt
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t.prefix.pch %t.prefix.h
|
2011-03-28 04:00:08 +08:00
|
|
|
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -include-pch %t.prefix.pch %s 2> %t.diags.pch.txt
|
2009-12-02 05:57:39 +08:00
|
|
|
// RUN: diff %t.diags.no_pch.txt %t.diags.pch.txt
|
|
|
|
// XFAIL: *
|
|
|
|
// PR5662
|
|
|
|
|
|
|
|
float x;
|