Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 24, 2024
1 parent 9b84429 commit 77882f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions inputs/failing/optimizerBug.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// //! test_output(1)

export default function main() {
return f([1]);
}

export function f(values: number[]): number {
const x = [
values[0],
];

if (values[0]) {
return x[0];
}

return 0;
}

0 comments on commit 77882f0

Please sign in to comment.