llvm-project/clang/test/Modules/declare-use4.cpp

11 lines
245 B
C++

// RUN: rm -rf %t
// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
#define ALLOWED_INC "b.h"
#include "j.h"
const int g2 = j;
// expected-no-diagnostics