xref: /aosp_15_r20/external/clang/test/Modules/internal-constants.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: rm -rf %t
2*67e74705SXin Li // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/internal-constants %s -verify
3*67e74705SXin Li 
4*67e74705SXin Li // expected-no-diagnostics
5*67e74705SXin Li #include "c.h"
6*67e74705SXin Li 
7*67e74705SXin Li int q = h();
8*67e74705SXin Li int r = N::k;
9*67e74705SXin Li 
10*67e74705SXin Li #include "b.h"
11*67e74705SXin Li 
12*67e74705SXin Li int s = N::k; // FIXME: This should be ambiguous if we really want internal linkage declarations to not collide.
13