mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 16:02:45 -04:00
13 lines
317 B
Odin
13 lines
317 B
Odin
// Type your code here, or load an example.
|
|
// At higher optimization levels, procedures may be
|
|
// automatically inlined and will not show up in the
|
|
// output. Use the `@(export)` attribute on procedures
|
|
// you wish to see in the output.
|
|
|
|
package main
|
|
|
|
@(export)
|
|
square :: proc(num: int) -> int {
|
|
return num * num
|
|
}
|