mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 22:02:41 +01: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:
@@ -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