Files
scriptc/tests/library-mode/callbacks/lib_builtins.ts
Chris Tate 3f66c8e20b Make LLVM the sole production backend
- Remove C emission, debugging options, and automatic backend fallback.
- Complete LLVM lowering and native bootstrap coverage across supported targets.
- Link executables and libraries with precompiled C runtime packs, including iOS and Android.
2026-09-29 20:54:09 -05:00

15 lines
566 B
TypeScript

// CB6 builtin-name collision fixture: profile channels may share names with
// declaration-file ambients without claiming those bindings. isNaN must keep
// its standard-library lowering; parseInt is unreferenced channel capacity and
// must not be validated against lib.d.ts's optional-radix signature.
// Profile channels dispatch indirectly, including names that are C keywords.
declare function int(x: number): number;
export function checkBuiltin(x: number): boolean {
return isNaN(x);
}
export function callKeyword(x: number): number {
return int(x);
}