File: init.c

package info (click to toggle)
binaryen 68-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,900 kB
  • sloc: cpp: 57,351; ansic: 3,562; python: 2,898; sh: 700; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
volatile int x, y;

__attribute__((constructor))
void init_x() {
    x = 14;
}

__attribute__((constructor))
void init_y() {
    y = 144;
}

int main() {
    return x + y;
}