xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_316.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: msg_316.c,v 1.4 2023/03/28 14:44:35 rillig Exp $	*/
2 # 3 "msg_316.c"
3 
4 // Test for message: __FUNCTION__/__PRETTY_FUNCTION__ is a GCC extension [316]
5 
6 /* lint1-flags: -Sw -X 351 */
7 
8 void println(const char *);
9 
10 void debug(void)
11 {
12 	/* expect+1: warning: __FUNCTION__/__PRETTY_FUNCTION__ is a GCC extension [316] */
13 	println(__FUNCTION__);
14 	/* expect+1: warning: __FUNCTION__/__PRETTY_FUNCTION__ is a GCC extension [316] */
15 	println(__PRETTY_FUNCTION__);
16 }
17