summaryrefslogtreecommitdiff
path: root/tests/Klocation
blob: 404e5ae5e27df223e105308382b74d4fe160fafd (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Include some line continuations to make sure they don't mess up line numbers

# Defined and referenced in multiple locations
config A
    bool

# Throw in some line continuations too to make sure it doesn't mess up the line
# numbers
menu "menu 1"
    depends on A
    visible if A && \
      NOT_DEFINED

# Also defined in Klocation_included
choice B
    bool "b" if A

config C
    bool "c"

config D
    bool "d"

\

endchoice

config A
    def_bool NOT_DEFINED

comment "comment 1"

config E
    bool "E" if A
    depends on A

endmenu

config \
 FOO
    string
    option \
    env\
    =\
    "FOO"

\
\

config BAR
    string
    default \
      "_included"

# Expands to "tests/Klocation_included"
source \
"$FOO/Klocation$BAR"

\
\
\

config I
    int
    range A 0
    range 0 A
    range 0 1 if A
    default J if A < 0
    default K if 0 < A
    default L if 0 <= A
    default M if 0 > A
    default N if 0 >= A
    default N if y && 0 < A