xref: /aosp_15_r20/external/ltp/lib/newlib_tests/test01.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2016 Cyril Hrubis <[email protected]>
4  */
5 
6 /*
7  * The test should abort when oldlib function is called from newlib.
8  */
9 
10 #include "tst_test.h"
11 
12 void tst_exit(void);
13 
do_test(void)14 static void do_test(void)
15 {
16 	tst_exit();
17 }
18 
19 static struct tst_test test = {
20 	.test_all = do_test,
21 };
22