gdb.python/py-as-string.exp C++ify

Make the testcase buildable with a C++ compiler.

gdb/testsuite/ChangeLog:

	* gdb.python/py-as-string.c: Add cast.
This commit is contained in:
Pedro Alves
2020-09-17 23:33:43 +01:00
parent ef0cdbc16f
commit 0640a54339
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@ enum EnumType {
};
static enum EnumType enum_valid = ENUM_VALUE_B;
static enum EnumType enum_invalid = 20;
static enum EnumType enum_invalid = (enum EnumType) 20;
int
main ()