mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 21:00:31 +00:00
SemIR::Namespace->clang::NamespaceDecl interop (#6935)
Rough-in with TODO for caching and scoping/nesting, this only handles top level namespaces and doesn't nest them appropriately.
This commit is contained in:
1 parent
7b3f120f97
commit
14b72f16da
4 files changed
+103
-20
No files matched your search
@@ -23,3 +23,15 @@ import Cpp inline '''
|
||||
// CHECK:STDERR:
|
||||
Carbon::NonExistent v;
|
||||
''';
|
||||
|
||||
|
||||
// --- other.carbon
|
||||
package Other;
|
||||
// --- namespace.carbon
|
||||
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
import Other;
|
||||
import Cpp inline '''
|
||||
namespace X = Carbon::Other;
|
||||
''';
|
||||
Reference in new issue
Block a user