brintos

brintos / linux-shallow public Read only

0
0
Text · 631 B · a657651 Raw
36 lines · c
1// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)2 3/*4 * BTF-to-C dumper test for multi-dimensional array output.5 *6 * Copyright (c) 2019 Facebook7 */8/* ----- START-EXPECTED-OUTPUT ----- */9typedef int arr_t[2];10 11typedef int multiarr_t[3][4][5];12 13typedef int *ptr_arr_t[6];14 15typedef int *ptr_multiarr_t[7][8][9][10];16 17typedef int * (*fn_ptr_arr_t[11])(void);18 19typedef int * (*fn_ptr_multiarr_t[12][13])(void);20 21struct 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;28};29 30/* ------ END-EXPECTED-OUTPUT ------ */31 32int f(struct root_struct *s)33{34	return 0;35}36