1*f4a2713aSLionel Sambuc // Test that the source manager has the "proper" idea about the include stack 2*f4a2713aSLionel Sambuc // when using PCH. 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc // RUN: echo 'int x;' > %t.prefix.h 5*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -include %t.prefix.h %s 2> %t.diags.no_pch.txt 6*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-pch -o %t.prefix.pch %t.prefix.h 7*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-show-note-include-stack -include-pch %t.prefix.pch %s 2> %t.diags.pch.txt 8*f4a2713aSLionel Sambuc // RUN: diff %t.diags.no_pch.txt %t.diags.pch.txt 9*f4a2713aSLionel Sambuc // XFAIL: * 10*f4a2713aSLionel Sambuc // PR5662 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc float x; 13