summaryrefslogtreecommitdiffhomepage
path: root/Examples/ExampleCDialect.c
blob: 8c65bf081e6ef8af0191bd3a52c793d034c93393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct {
	int a;
	int b;
	int c;
};

int __ImageStart(int argc, char const* argv[]) {
  int* foo = 0x1000;

  if (foo == 57) {
    foo = 0x2000;
    *foo = 5;
    return foo;
  }

  return 57;
}