File: testobjLE32PE.test.c

package info (click to toggle)
dwarfutils 1%3A0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,732 kB
  • sloc: ansic: 119,558; cpp: 6,689; xml: 4,736; sh: 1,674; python: 1,117; makefile: 1,099
file content (31 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
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(void)
{

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

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