xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/include_next.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: rm -rf %t
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -I%S/Inputs/include_next/x -I%S/Inputs/include_next/y -verify %s
3*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -I%S/Inputs/include_next/x -I%S/Inputs/include_next/y -verify %s -fmodules -fmodules-cache-path=%t
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
6*0a6a1f1dSLionel Sambuc #include "a.h"
7*0a6a1f1dSLionel Sambuc #include "subdir/b.h"
8*0a6a1f1dSLionel Sambuc _Static_assert(ax == 1, "");
9*0a6a1f1dSLionel Sambuc _Static_assert(ay == 2, "");
10*0a6a1f1dSLionel Sambuc _Static_assert(bx == 3, "");
11*0a6a1f1dSLionel Sambuc _Static_assert(by == 4, "");
12