xref: /linux/tools/testing/selftests/bpf/progs/btf_data.c (revision 164666fa66669d437bdcc8d5f1744a2aee73be41)
1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2 
3 struct S {
4 	int	a;
5 	int	b;
6 	int	c;
7 };
8 
9 union U {
10 	int	a;
11 	int	b;
12 	int	c;
13 };
14 
15 struct S1 {
16 	int	a;
17 	int	b;
18 	int	c;
19 };
20 
21 union U1 {
22 	int	a;
23 	int	b;
24 	int	c;
25 };
26 
27 typedef int T;
28 typedef int S;
29 typedef int U;
30 typedef int T1;
31 typedef int S1;
32 typedef int U1;
33 
34 struct root_struct {
35 	S		m_1;
36 	T		m_2;
37 	U		m_3;
38 	S1		m_4;
39 	T1		m_5;
40 	U1		m_6;
41 	struct S	m_7;
42 	struct S1	m_8;
43 	union  U	m_9;
44 	union  U1	m_10;
45 };
46 
47 int func(struct root_struct *root)
48 {
49 	return 0;
50 }
51