summaryrefslogtreecommitdiff
path: root/tests/Kdep
blob: 87defaa3a0946dd83930d7b8aed9962be4042c6d (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
config D
   bool "D"
   select D29
   imply D30

config DUMMY
   select D31 if D
   imply D32 if 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

menuconfig 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

# Different kinds of expressions

config D14
    bool "D14" if D || n

config D15
    bool "D15" if n || D

config D16
    bool "D16" if D && y

config D17
    bool "D17" if y && D

config D18
    bool "D18" if !D

config D19
    bool "D19" if !D && y

config D20
    bool "D20" if !(D && y)

config D21
    bool "D21" if (D)

config D22
    bool "D22" if ((D))

config D23
    bool "D23" if n || (y && n || (m || D))

config D24
    bool "D24" if D = n

config D25
    bool "D25" if n = D

config D26
    bool "D26" if n != D

config D27
    bool "D27" if D != n

config D28
    bool "D28" if n || ((n != D) || n)

config D29
    tristate "D29"

config D30
    tristate "D30"

config D31
    tristate "D31"

config D32
    tristate "D32"

#
# Choices
#

choice
    tristate "choice" if S

config A
    bool "A"

config B
    bool "B"

config C
    bool "C"

endchoice

config S
    bool "S"