File: testobjLE32PE.test.c

package info (click to toggle)
dwarfutils 20201201-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,868 kB
  • sloc: ansic: 104,667; sh: 5,947; cpp: 4,675; python: 878; makefile: 646; awk: 11
file content (31 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
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
/*  This is the test file used to compile
    testobjLE32PE.exe under MinGW on Windows 8.1
    These leading comments mean a recompile would
    not exactly match line numbers in the DWARF.
    This source file is hereby placed in the public domain.
*/
#include <stdio.h>

struct something {
int a;
unsigned b;
};

int
buffle(struct something *v )
{
    return v->a + 42;

}

int main(int argc, char **argv)
{

    int x = 12;
    int y = 24;
    struct something so;

    so.a = x;
    x  = buffle(&so);
    return x +y + 4 +argc;
}