lsym_sizeof.c revision 1.5
1/* $NetBSD: lsym_sizeof.c,v 1.5 2022/04/24 09:04:12 rillig Exp $ */ 2 3/* 4 * Tests for the token lsym_sizeof, which represents the keyword 'sizeof' for 5 * determining the memory size of an object or a type. 6 * 7 * See also: 8 * opt_bs.c "blank after sizeof" 9 * C11 6.5.3.4 "The 'sizeof' and '_Alignof' operators" 10 */ 11 12//indent input 13// TODO: add input 14//indent end 15 16//indent run-equals-input 17 18 19/* 20 * After 'sizeof', a type name in parentheses does not start a cast 21 * expression. 22 */ 23//indent input 24char str[sizeof(int) * CHAR_BIT + 1]; 25//indent end 26 27//indent run-equals-input -di0 28