mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
New tests, fix old tests, make more tests work
This commit is contained in:
@@ -215,6 +215,16 @@ void inheritance1 (void)
|
||||
|
||||
// ????? = 11; (g_D.A::a = 11; is ambiguous)
|
||||
// ????? = 12; (g_D.A::x = 12; is ambiguous)
|
||||
/* djb 6-3-2000
|
||||
|
||||
This should take care of it. Rather than try to initialize using an ambiguous
|
||||
construct, use 2 unambiguous ones for each. Since the ambiguous a/x member is
|
||||
coming from C, and B, initialize D's C::a, and B::a, and D's C::x and B::x.
|
||||
*/
|
||||
g_D.C::a = 15;
|
||||
g_D.C::x = 12;
|
||||
g_D.B::a = 11;
|
||||
g_D.B::x = 12;
|
||||
g_D.B::b = 13;
|
||||
g_D.B::x = 14;
|
||||
// ????? = 15;
|
||||
|
||||
Reference in New Issue
Block a user