zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

blob ea4e42f1 (228B) - Raw


      1 export fn entry() void {
      2     foo();
      3 }
      4 fn foo() callconv(.naked) void {}
      5 
      6 // error
      7 // backend=llvm
      8 // target=native
      9 //
     10 // :2:5: error: unable to call function with calling convention 'naked'
     11 // :4:1: note: function declared here