xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_068.c (revision cd4ee416b8ecb6a5d3739b2d808bd6e8e4173867)
1 /*	$NetBSD: msg_068.c,v 1.6 2024/11/30 11:27:20 rillig Exp $	*/
2 # 3 "msg_068.c"
3 
4 // Test for message: typedef already qualified with '%s' [68]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 typedef const char const_char;
9 
10 /* expect+1: warning: typedef already qualified with 'const' [68] */
11 const const_char twice_const;
12 
13 typedef volatile char volatile_char;
14 
15 /* expect+1: warning: typedef already qualified with 'volatile' [68] */
16 volatile volatile_char twice_volatile;
17 
18 typedef const volatile char const_volatile_char;
19 
20 /* expect+2: warning: typedef already qualified with 'const' [68] */
21 /* expect+1: warning: typedef already qualified with 'volatile' [68] */
22 const volatile const_volatile_char twice_const_volatile;
23