llvm-project/clang/test/Modules/internal-constants.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
374 B
C++
Raw Normal View History

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/internal-constants %s -verify
// expected-no-diagnostics
#include "c.h"
int q = h();
int r = N::k;
#include "b.h"
int s = N::k; // FIXME: This should be ambiguous if we really want internal linkage declarations to not collide.