summaryrefslogtreecommitdiff
path: root/scripts/kconfig/tests/err_num_mismatch/Kconfig
blob: 8406f3bb6419ffa359dadfb12c87d1a0db5f3016 (plain) (blame)
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
# SPDX-License-Identifier: GPL-2.0
# Test 'int' and 'hex' symbols that reference each other

config INT_SOURCE
	int

config HEX_SOURCE
	hex

# 'hex' reference from 'int'

config INT_DEFAULT_HEX
	int
	default HEX_SOURCE

config INT_RANGE_HEX
	int
	range HEX_SOURCE 1

# A hex symbol must not reference an int symbol

config HEX_DEFAULT_INT
	hex
	default INT_SOURCE

config HEX_RANGE_INT
	hex
	range INT_SOURCE 0x1

# Referencing the same type is valid

config INT_FROM_INT
	int
	default INT_SOURCE

config HEX_FROM_HEX
	hex
	range 0 HEX_SOURCE