summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/platform_uchar.c
blob: d2b8cbe5cbc9c8684c62af0b975f914e9cb98293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: platform_uchar.c,v 1.3 2023/02/22 22:12:35 rillig Exp $	*/
# 3 "platform_uchar.c"

/*
 * Test features that only apply to platforms where plain char has the same
 * representation as unsigned char.
 */

/* lint1-extra-flags: -c -h -a -p -b -r -z */
/* lint1-only-if: uchar */

/* CONSTCOND */
/* expect+1: warning: nonportable character comparison '< 128' [230] */
typedef int is_unsigned[(char)'\177' < (char)'\200' ? 1 : -1];