aboutsummaryrefslogtreecommitdiffhomepage
path: root/errortest/baddepsyntax_lib/main.slul
blob: 7c20c9ea410c028dc806cd89ad6e03a00649ceba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

\slul 0.0.0
\name baddepsyntax_lib
\type libraryspec
\version 2.3

\depends somelib 1.0 nestedonly
\depends otherlib 1.0

# TODO improve error (and report only one error)
# ERROR +3.39: error: Unknown flag on \interface_depends line (or misspelled "since")
# ERROR +2.39: error: Too many parameters for this attribute
# ERROR .49: error: Too many parameters for this attribute
\interface_depends two_versions_b 1.0 sicnetypo 2.2.1
# ERROR .37: error: Missing "since" keyword in module with stable API
\interface_depends missing_since 1.0
# ERROR .43: error: Missing version number after "since"
\interface_depends missing_since 1.0 since
# TODO improve error (and report only one error)
# ERROR +4.38: error: Unknown flag on \interface_depends line (or misspelled "since")
# ERROR +3.38: error: Too many parameters for this attribute
# ERROR +2.46: error: Too many parameters for this attribute
# ERROR .52: error: Too many parameters for this attribute
\interface_depends missing_since 1.0 badflag since 2.3

# ERROR .32: error: \interface_depends must have 'nestedonly' when \depends does
\interface_depends somelib 1.0 since 2.2

# ERROR +2.44: error: Duplicated flag on \interface_depends line
# ERROR .1: error: Missing \api_def of version '2.1', for which there is a since-version in '\interface_depends otherlib'
\interface_depends otherlib 0.9 nestedonly nestedonly since 2.1
# ERROR .33: error: Flags in \interface_depends differs from previous \interface_depends
\interface_depends otherlib 1.0 since 2.2
# ERROR .29: error: \interface_depends may not be higher than \depends
\interface_depends otherlib 1.1 nestedonly since 2.3

# TODO add correct calculation of these. these are just dummy values
\api_def 1.0 01000001000001000001000001000001
\api_def 2.0 02000002000002000002000002000002
# Missing api_def = error
#\api_def 2.1 02010002010002010002010002010002
\api_def 2.2 02020002020002020002020002020002
\api_def 2.3 02030002030002030002030002030002