gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 16 Sep 2012 17:30:48 +0000 (17:30 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 16 Sep 2012 17:30:48 +0000 (17:30 +0000)
Fix compatibility with old GCC (~4.1).
* gdb.cp/converts.cc (my_enum_var): New variable.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/converts.cc

index 7fcf5209cd5c3de82652f9bf16b939fc05ea1d49..c5da0ccfae0714fc608f92007ff48418721db8fa 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix compatibility with old GCC (~4.1).
+       * gdb.cp/converts.cc (my_enum_var): New variable.
+
 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
 
        * gdb.xml/tdesc-regs.exp: Update expected output for new
index 025123fb33f144be266b033ebc6a27b7190b08d5..309008f8247fc582f6b3e80ae4d68495d327d34c 100644 (file)
@@ -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; }
This page took 0.053168 seconds and 4 git commands to generate.