mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 18:51:09 +01: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:
@@ -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