mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 08:06:41 +00:00
Support import Cpp; to import Cpp namespace for using C++ builtins (#6320)
This allows writing ``` import Cpp; ``` Instead of writing ``` import Cpp inline ""; ``` Part of #6330.
This commit is contained in:
1 parent
ce109708bf
commit
b54f2dd592
11 files changed
+110
-33
No files matched your search
@@ -35,7 +35,7 @@ fn F(input: Cpp.S*) {
|
||||
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
import Cpp inline "";
|
||||
import Cpp;
|
||||
|
||||
class C {}
|
||||
|
||||
@@ -77,7 +77,7 @@ fn F(input: Cpp.void*) {
|
||||
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
import Cpp inline "";
|
||||
import Cpp;
|
||||
|
||||
class C {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user