Skip to content

Commit

Permalink
Add additional overload ordering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asherkin committed Mar 30, 2016
1 parent 0948e5b commit 976468b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function toArrayBuffer(buffer) {
return ab;
}

function cxa_demangle(func) {
function demangleSymbol(func) {
try {
if (typeof func !== 'string') {
throw new Error('input not a string');
Expand Down Expand Up @@ -144,7 +144,7 @@ fs.readFile(inputFile, function(err, data) {

for (var classIndex = 0; classIndex < listOfVirtualClasses.length; ++classIndex) {
var symbol = listOfVirtualClasses[classIndex];
var name = cxa_demangle(symbol.name).substr(11);
var name = demangleSymbol(symbol.name).substr(11);

var data = getRodata(programInfo, symbol.address, symbol.size);
if (!data) {
Expand Down
Binary file modified test/test-32
Binary file not shown.
Binary file modified test/test-64
Binary file not shown.
5 changes: 4 additions & 1 deletion test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ struct CTwo: public COne {
TESTFUNC( void Two() )
TESTFUNC( void Three(int) )
TESTFUNC( void Three(float) )
TESTFUNC( void Three(char) )
TESTFUNC( void Five() )
};

struct CThree {
TESTFUNC( void Six() )
TESTFUNC( void Seven() )
};

struct CFour: public CTwo, public CThree {
TESTFUNC( void One() )
TESTFUNC( void Two() )
TESTFUNC( void Six() )
TESTFUNC( void Seven() )
TESTFUNC( void Six(float) )
TESTFUNC( void Eight() )
};

int main() {
Expand Down

0 comments on commit 976468b

Please sign in to comment.