xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/declare-use4.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: rm -rf %t
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc #define ALLOWED_INC "b.h"
5*0a6a1f1dSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc #include "j.h"
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc const int g2 = j;
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
11