Skip to content

Commit 7026b09

Browse files
committed
when generating C, put the arguments within the function
1 parent 6f2d27f commit 7026b09

File tree

1 file changed

+3
-3
lines changed
  • crates/intrinsic-test/src/common

1 file changed

+3
-3
lines changed

crates/intrinsic-test/src/common/gen_c.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ std::ostream& operator<<(std::ostream& os, float16_t value) {{
139139
}
140140
writeln!(w, "#endif")?;
141141

142+
writeln!(w, "int main(int argc, char **argv) {{")?;
143+
142144
// Define the arrays of arguments.
143145
let arguments = intrinsic.arguments();
144-
arguments.gen_arglists_c(w, indentation, PASSES)?;
145-
146-
writeln!(w, "int main(int argc, char **argv) {{")?;
146+
arguments.gen_arglists_c(w, indentation.nested(), PASSES)?;
147147

148148
generate_c_constraint_blocks(
149149
w,

0 commit comments

Comments
 (0)