blob: 335d81ae2f1924d811aae2990c410673fb525d4a (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
/* $NetBSD: fmt_init.c,v 1.1 2022/04/24 10:36:37 rillig Exp $ */
/*
* Tests for variable initializations.
*/
//indent input
int global = { initializer };
int global = {
initializer
};
void
example(void)
{
int local = { initializer };
int local = {
initializer
};
}
//indent end
//indent run -di0
// $ XXX: The spaces around the initializer are gone.
int global = {initializer};
int global = {
initializer
};
void
example(void)
{
// $ XXX: The spaces around the initializer are gone.
int local = {initializer};
int local = {
initializer
};
}
//indent end
|