diff options
Diffstat (limited to 'test/Preprocessor/include-cycle.c')
| -rw-r--r-- | test/Preprocessor/include-cycle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/include-cycle.c b/test/Preprocessor/include-cycle.c new file mode 100644 index 000000000000..52fcfbd27ad8 --- /dev/null +++ b/test/Preprocessor/include-cycle.c @@ -0,0 +1,5 @@ +// RUN: not %clang_cc1 -E -I%S/Inputs -ferror-limit 20 %s + +// Test that preprocessing terminates even if we have inclusion cycles. + +#include "cycle/a.h" |
