You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[----------] 1 tests from ClassAB
[ RUN ] ClassAB.getPrivateValue
iutest_bug.cpp(31): error: Value of actual
Actual: 10609944
Expected: 1
[ FAILED ] ClassAB.getPrivateValue (6ms)
[----------] 1 tests from ClassAB(9ms total)
[----------] 1 tests from ClassA
[ RUN ] ClassA.getPrivateValue
[ OK ] ClassA.getPrivateValue (0ms)
[----------] 1 tests from ClassA(3ms total)
The text was updated successfully, but these errors were encountered:
Describe the bug
多重継承を行ったクラスのprivateメンバ変数をIUTEST_PEEP_GETで取得すると,
戻り値が期待した値でない.
多重継承によるメモリレイアウトの影響が考えられる。
To Reproduce
Expected behavior
IUTEST(ClassAB, getPrivateValue)において,Actual: 1となる.
privateValueはClassABのプライベートメンバであり、初期化時に1が設定されているため.
Screenshots
なし
Environment (please complete the following information):
Additional context
bugが発生するコード.
テスト結果.
The text was updated successfully, but these errors were encountered: