...
1-- cue.mod/modules.cue --
2
3-- invalid_file_attr.cue --
4@extern("test" foo)
5
6package foo
7
8-- invalid_field_attr.cue --
9
10@extern("test")
11
12// Foo
13
14package foo
15
16Fn1: _ @extern("file1.xx" abi sig)
17
18-- empty_extern.cue --
19@extern()
20
21package foo
22
23Fn2: _ @extern("file1.xx" abi sig)
24
25
26-- unknown_interpreter.cue --
27@extern("wazem")
28
29package foo
30
31Fn3: _ @extern("file1.xx" abi sig)
32
33-- double_extern_a.cue --
34@extern("test")
35@extern("test")
36
37package foo
38
39Fn4a: _ @extern("file1.xx")
40
41-- double_extern_b.cue --
42@extern("test")
43@extern("test")
44@extern("test")
45
46package foo
47
48Fn4b: _ @extern("file1.xx")
49
50-- package_attr.cue --
51@extern("test")
52
53package foo
54
55@extern("file1.xx")
56Fn5: _
57
58-- duplicate.cue --
59@extern("test")
60
61package foo
62
63
64Fn6: _ @extern("file1.xx",sig=func(int)int) @extern("file1.xx", sig=func(int)bool)
65
66Fn7: {
67 @extern("file1.xx",sig=func(int)int)
68 _
69} @extern("file1.xx", sig=func(int)bool)
70
71-- non_ident.cue --
72@extern("test")
73
74package foo
75
76
77"a-b": _ @extern("file1.xx",sig=func(int)int)
78
79[string]: _ @extern("file1.xx",sig=func(int)int)
80
81-- late_extern.cue --
82package foo
83
84@extern("test")
85
86
87Foo: _ @extern(file1.xx, abi=c, sig="func(int)int")
88
89-- out/extern --
90only one file-level extern attribute allowed per file:
91 ./double_extern_a.cue:2:1
92only one file-level extern attribute allowed per file:
93 ./double_extern_b.cue:2:1
94duplicate extern attributes:
95 ./duplicate.cue:6:45
96duplicate extern attributes:
97 ./duplicate.cue:11:3
98interpreter name must be non-empty:
99 ./empty_extern.cue:1:1
100no interpreter defined for "\"test\" foo":
101 ./invalid_file_attr.cue:1:1
102extern attribute must appear before package clause:
103 ./late_extern.cue:3:1
104can only define functions for fields with identifier names, found "a-b":
105 ./non_ident.cue:6:10
106can only define functions for fields with identifier names, found [string]:
107 ./non_ident.cue:8:13
108extern attribute not associated with field:
109 ./package_attr.cue:5:1
110no interpreter defined for "wazem":
111 ./unknown_interpreter.cue:1:1
View as plain text