mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 21:29:26 -06:00
- Renames existing carbon stuff to carbon-explorer. Will need a quick infra install and will temporarily (like, for 2m) break things during deploy. - Adds carbon binary support - Supports binary, execute, and binary objects - Updates the default carbon file as best I can Closes #5402
12 lines
261 B
Plaintext
12 lines
261 B
Plaintext
// To run this in Carbon Explorer you'll need to uncomment the following line:
|
|
// package sample api;
|
|
|
|
fn Square(x: i32) -> i32 {
|
|
return x * x;
|
|
}
|
|
|
|
// To run this in Carbon Explorer you'll need to rename this "Main()".
|
|
fn Run() -> i32 {
|
|
return Square(12);
|
|
}
|