blob: b3575f63975797cdc71f73366b1007d89d6f267e (
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
|
/* $NetBSD: lsym_switch.c,v 1.5 2023/06/14 11:18:09 rillig Exp $ */
/*
* Tests for the token lsym_switch, which represents the keyword 'switch' that
* starts a 'switch' statement.
*
* See also:
* C11 6.8.4 "Selection statements"
* C11 6.8.4.2 "The 'switch' statement"
*/
// TODO: Add systematic tests.
/*
* Ensure that an unfinished 'switch' statement does not eat comments.
*/
//indent input
{
switch (expr) // comment
{
}
}
//indent end
//indent run-equals-input
|