summaryrefslogtreecommitdiff
path: root/tests/Kdep
blob: fe9928381a3f27970d8da264dc7a7d49e5435d03 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
config D
   bool "D"

# The symbols below depend on D in different ways

config D1
   def_bool D

config D2
   int "D2" if D

config D3
   int "D3"
   depends on D

config D4
   bool "D4"
   default D

config D5
   bool
   default y if D

config D6
    int
    range 0 1 if D

config D7
    int
    range D 1

config D8
    int
    range 0 D

if D

# Has no prompt and hence does not depend on D even though it's within the
# 'if D' block
config NO_DEPEND
    bool

config D9
    bool "D9"

endif

menu "m"
    depends on D

config D10
    bool "D10"

menu "nested"

config D11
    bool "D11"

endmenu
endmenu

# Indirect dependency
config D12
    def_tristate D11

menu "m"
    depends on D
if D
# Depends on D in lots of different ways
config D13
    int "D13" if D
    depends on D && D12
    default D if D
    range D D if D
endif
endmenu

# Complicated expression
config D14
    bool "D14" if n || (y && n || (m || D))

#
# Choices
#

choice
    tristate "choice" if S

config A
    bool "A"

config B
    bool "B"

config C
    bool "C"

endchoice

config S
    bool "S"