]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/lto-rename_segment/main.c
ld64-274.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-rename_segment / main.c
CommitLineData
599556ff
A
1
2extern const char** myp;
3extern const char* mystring;
4
5
6__attribute__((section("__DATA,__data_extra")))
7int param = 0;
8
9
10const char** entry(int i) {
11 if ( i ) {
12 *myp = "help";
13 }
14 param = i;
15 return myp;
16}
17
18int get() { return param; }