summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-09-17 23:33:43 +0100
committerPedro Alves <pedro@palves.net>2020-09-18 00:08:44 +0100
commit0640a543397b83fb0a4f8f95dad0b09e6574c369 (patch)
tree4d94f32c830cae3586286697c36f5866115bde41
parentef0cdbc16f4909d667497691f456d15c7dc7cdba (diff)
downloadbinutils-gdb-0640a543397b83fb0a4f8f95dad0b09e6574c369.tar.gz
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.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-as-string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index db141589fcb..587f1ae1424 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2020-09-17 Pedro Alves <pedro@palves.net>
+ * gdb.python/py-as-string.c: Add cast.
+
+2020-09-17 Pedro Alves <pedro@palves.net>
+
* gdb.base/sizeof.c (fill): Add cast.
2020-09-17 Pedro Alves <pedro@palves.net>
diff --git a/gdb/testsuite/gdb.python/py-as-string.c b/gdb/testsuite/gdb.python/py-as-string.c
index 7780a9c93c2..245bcb286bd 100644
--- a/gdb/testsuite/gdb.python/py-as-string.c
+++ b/gdb/testsuite/gdb.python/py-as-string.c
@@ -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 ()