File: no-forced-nl-in-block-init.c

package info (click to toggle)
indent 2.2.12-4%2Bdeb12u3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,980 kB
  • sloc: ansic: 37,897; sh: 5,187; makefile: 708; yacc: 291; sed: 16; cpp: 5
file content (14 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void foo()
{
    struct_a arr[] = {
        { &a, sizeof (a) },
        { &b, sizeof (b) },
        { &c, sizeof (c) },
        { &d, sizeof (d) }
    };

    struct {
        int a;
        int b;
    } v = { 0 };
}