Skip to content

Commit

Permalink
Temp, update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdtscp committed May 14, 2019
1 parent 0f29fc9 commit 287dbbb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions test/tests/Test_ASTAnalysis/MemberCalls/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ class Base {
int b_func() { return 1; }
};

class Derived {
public:
char m_int;
// class Derived {
// public:
// char m_int;

Base d_func() {
Base b;
const int unused = this->m_int;
return b;
}
};
// Base d_func() {
// Base b;
// const int unused = this->m_int;
// return b;
// }
// };

int main() {
Derived myDerived;
int m_int = myDerived.d_func().b_func();
Base myBase;
int b_int = myBase.b_func();
// Derived myDerived;
// int m_int = myDerived.d_func().b_func();
}

0 comments on commit 287dbbb

Please sign in to comment.