[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / declare-use4.cpp
blob621422f0109b078a59296d134c3ada829f65427f
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
4 #define ALLOWED_INC "b.h"
6 #include "j.h"
8 const int g2 = j;
10 // expected-no-diagnostics