[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / internal-constants.cpp
blobf95e95cc8bbb9d393dc2d548460d23a4e8d90f8c
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/internal-constants %s -verify
4 // expected-no-diagnostics
5 #include "c.h"
7 int q = h();
8 int r = N::k;
10 #include "b.h"
12 int s = N::k; // FIXME: This should be ambiguous if we really want internal linkage declarations to not collide.