mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:28:11 +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
@@ -88,7 +88,7 @@ fn F() {
|
||||
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
import Cpp inline "";
|
||||
import Cpp;
|
||||
|
||||
// CHECK:STDERR: fail_void.carbon:[[@LINE+5]]:6: error: parameter has incomplete type `Cpp.void` in function definition [IncompleteTypeInFunctionParam]
|
||||
// CHECK:STDERR: fn F(x: Cpp.void) {}
|
||||
|
||||
Reference in new issue
Block a user