cuelang.org/go@v0.10.1/internal/core/runtime/testdata/no_top_extern.txtar (about)

     1  // TODO: We do not generate an error here as it allows files to be processed
     2  // faster. But maybe it is more user-friendly to report the error.
     3  -- cue.mod/modules.cue --
     4  -- in.cue --
     5  // Missing @extern("test")
     6  @dummy()
     7  
     8  package foo
     9  
    10  
    11  Foo: _ @test(file.xx, abi=c, sig="func(int)int")
    12  
    13  -- extern/out --
    14  -- out/extern/config --
    15  {
    16  	Foo: _
    17  }
    18  -- out/extern --
    19  {
    20  	Foo: _
    21  }