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