Extend the dll autoimport test to test references to a external variable with offset
This commit is contained in:
1 parent
c8ca4bddd6
commit
5a70c3cb78
3 files changed
+24
No files matched your search
@@ -20,6 +20,8 @@
|
||||
|
||||
int var;
|
||||
|
||||
int array[10];
|
||||
|
||||
int getVar(void) {
|
||||
return var;
|
||||
}
|
||||
@@ -27,3 +29,11 @@ int getVar(void) {
|
||||
void setVar(int val) {
|
||||
var = val;
|
||||
}
|
||||
|
||||
int getArray(int index) {
|
||||
return array[index];
|
||||
}
|
||||
|
||||
void setArray(int index, int val) {
|
||||
array[index] = val;
|
||||
}
|
||||
Reference in new issue
Block a user