diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-09-16 17:30:48 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-09-16 17:30:48 +0000 |
commit | 666b578baa50340a13808a9f4eff0c044de9b52c (patch) | |
tree | 6281658a9c9ec7a4e086c38e607a4f6a8fc015c9 /gdb/testsuite/gdb.cp/converts.cc | |
parent | a82a73de3436b6dbd3f5d19e8af6150619a90b4a (diff) | |
download | gdb-666b578baa50340a13808a9f4eff0c044de9b52c.zip gdb-666b578baa50340a13808a9f4eff0c044de9b52c.tar.gz gdb-666b578baa50340a13808a9f4eff0c044de9b52c.tar.bz2 |
gdb/testsuite/
Fix compatibility with old GCC (~4.1).
* gdb.cp/converts.cc (my_enum_var): New variable.
Diffstat (limited to 'gdb/testsuite/gdb.cp/converts.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/converts.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/converts.cc b/gdb/testsuite/gdb.cp/converts.cc index 025123f..309008f 100644 --- a/gdb/testsuite/gdb.cp/converts.cc +++ b/gdb/testsuite/gdb.cp/converts.cc @@ -12,6 +12,10 @@ typedef TA2 TA3; enum my_enum {MY_A, MY_B, MY_C, MY_D}; +/* Without this variable older 'enum my_enum' incl. its 'MY_A' would be omitted + by older versions of GCC (~4.1) failing the testcase using it below. */ +enum my_enum my_enum_var; + int foo0_1 (TA1) { return 1; } int foo0_2 (TA3) { return 2; } int foo0_3 (A***) { return 3; } |