xref: /linux/scripts/kconfig/tests/err_num_mismatch/Kconfig (revision 486b257357c23743d9729ea715136d105fff461e)
1# SPDX-License-Identifier: GPL-2.0
2# Test 'int' and 'hex' symbols that reference each other
3
4config INT_SOURCE
5	int
6
7config HEX_SOURCE
8	hex
9
10# 'hex' reference from 'int'
11
12config INT_DEFAULT_HEX
13	int
14	default HEX_SOURCE
15
16config INT_RANGE_HEX
17	int
18	range HEX_SOURCE 1
19
20# A hex symbol must not reference an int symbol
21
22config HEX_DEFAULT_INT
23	hex
24	default INT_SOURCE
25
26config HEX_RANGE_INT
27	hex
28	range INT_SOURCE 0x1
29
30# Referencing the same type is valid
31
32config INT_FROM_INT
33	int
34	default INT_SOURCE
35
36config HEX_FROM_HEX
37	hex
38	range 0 HEX_SOURCE
39