teak-llvm/clang/test/Preprocessor/Inputs/cycle/a.h
Volodymyr Sapsai 482070b40a [Preprocessor] Stop entering included files after hitting a fatal error.
Fixes a problem when we have multiple inclusion cycles and try to
enumerate all possible ways to reach the max inclusion depth.

rdar://problem/38871876

Reviewers: bruno, rsmith, jkorous, aaron.ballman

Reviewed By: bruno, jkorous, aaron.ballman

Subscribers: dexonsmith, cfe-commits

Differential Revision: https://reviews.llvm.org/D48786

llvm-svn: 337953
2018-07-25 19:16:26 +00:00

9 lines
226 B
C

// Presence of 2 inclusion cycles
// b.h -> a.h -> b.h -> ...
// c.h -> a.h -> c.h -> ...
// makes it unfeasible to reach max inclusion depth in all possible ways. Need
// to stop earlier.
#include "b.h"
#include "c.h"