forked from swig/swig
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d3770e
commit 6875667
Showing
6 changed files
with
24 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import abstract_access.* | ||
|
||
d = abstract_access.D(); | ||
if (d.do_x() ~= 1) | ||
error('FAILED!!') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
import abstract_typedef2.* | ||
|
||
a = A_UF(); | ||
|
||
|
||
|
||
|
||
|
||
a = abstract_typedef2.A_UF(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import abstract_typedef.* | ||
e = Engine(); | ||
e = abstract_typedef.Engine(); | ||
|
||
a = abstract_typedef.A(); | ||
|
||
a = A(); | ||
|
||
|
||
if (a.write(e) ~= 1) | ||
error('FAILED!!') | ||
end | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
import abstract_virtual.* | ||
|
||
|
||
d = D(); | ||
|
||
e = E(); | ||
d = abstract_virtual.D(); | ||
|
||
e = abstract_virtual.E(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
import array_member.* | ||
|
||
f = Foo(); | ||
f.data = global_data(); | ||
f = array_member.Foo(); | ||
f.data = array_member.global_data(); | ||
|
||
for i=0:7, | ||
if (get_value(f.data,i) ~= get_value(global_data,i)) | ||
if (array_member.get_value(f.data,i) ~= array_member.get_value(array_member.global_data,i)) | ||
error('Bad array assignment'); | ||
end | ||
end | ||
|
||
for i=0:7, | ||
set_value(f.data,i,-i); | ||
array_member.set_value(f.data,i,-i); | ||
end | ||
|
||
global_data = f.data; | ||
|
||
for i=0:7, | ||
if (get_value(f.data,i) ~= get_value(global_data,i)) | ||
if (array_member.get_value(f.data,i) ~= array_member.get_value(global_data,i)) | ||
error('Bad array assignment') | ||
end | ||
end | ||
|
||
|
||
|