WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / bpf / progs / btf_dump_test_case_multidim.c
blobba97165bdb282205e34d8743a5001d128115641f
1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
3 /*
4 * BTF-to-C dumper test for multi-dimensional array output.
6 * Copyright (c) 2019 Facebook
7 */
8 /* ----- START-EXPECTED-OUTPUT ----- */
9 typedef int arr_t[2];
11 typedef int multiarr_t[3][4][5];
13 typedef int *ptr_arr_t[6];
15 typedef int *ptr_multiarr_t[7][8][9][10];
17 typedef int * (*fn_ptr_arr_t[11])();
19 typedef int * (*fn_ptr_multiarr_t[12][13])();
21 struct root_struct {
22 arr_t _1;
23 multiarr_t _2;
24 ptr_arr_t _3;
25 ptr_multiarr_t _4;
26 fn_ptr_arr_t _5;
27 fn_ptr_multiarr_t _6;
30 /* ------ END-EXPECTED-OUTPUT ------ */
32 int f(struct root_struct *s)
34 return 0;