xref: /linux/tools/build/feature/test-get_current_dir_name.c (revision eb01fe7abbe2d0b38824d2a93fdb4cc3eaf2ccc1)
1 // SPDX-License-Identifier: GPL-2.0
2 #define _GNU_SOURCE
3 #include <unistd.h>
4 #include <stdlib.h>
5 
6 int main(void)
7 {
8 	free(get_current_dir_name());
9 	return 0;
10 }
11 #undef _GNU_SOURCE
12