mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 19:11:11 +01:00
Add support for struct types, following p0561. (#856)
This commit is contained in:
+5
-3
@@ -11,10 +11,12 @@
|
||||
|
||||
package ExecutableSemanticsTest api;
|
||||
|
||||
fn DoNothing() {
|
||||
// Empty block
|
||||
}
|
||||
|
||||
fn main() -> i32 {
|
||||
var x: i32 = 0;
|
||||
{
|
||||
// empty block
|
||||
}
|
||||
DoNothing();
|
||||
return x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user