mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
To pick up proto updates (field renames etc.) and new carbon source samples added to testdata. ``` $ rm explorer/fuzzing/fuzzer_corpus/* $ explorer/fuzzing/regen_corpus.py ```
84 lines
1.9 KiB
Plaintext
84 lines
1.9 KiB
Plaintext
compilation_unit {
|
|
package_statement {
|
|
package_name: "ExplorerTest"
|
|
}
|
|
is_api: true
|
|
declarations {
|
|
function {
|
|
name: "Main"
|
|
param_pattern {
|
|
}
|
|
return_term {
|
|
kind: Expression
|
|
type {
|
|
int_type_literal {
|
|
}
|
|
}
|
|
}
|
|
body {
|
|
statements {
|
|
variable_definition {
|
|
pattern {
|
|
binding_pattern {
|
|
name: "t"
|
|
type {
|
|
expression_pattern {
|
|
expression {
|
|
struct_type_literal {
|
|
fields {
|
|
name: "x"
|
|
expression {
|
|
int_type_literal {
|
|
}
|
|
}
|
|
}
|
|
fields {
|
|
name: "y"
|
|
expression {
|
|
int_type_literal {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
init {
|
|
struct_literal {
|
|
fields {
|
|
name: "y"
|
|
expression {
|
|
int_literal {
|
|
value: 2
|
|
}
|
|
}
|
|
}
|
|
fields {
|
|
name: "x"
|
|
expression {
|
|
int_literal {
|
|
value: 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
is_returned: false
|
|
}
|
|
}
|
|
statements {
|
|
return_expression_statement {
|
|
expression {
|
|
int_literal {
|
|
value: 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|