Cause clang to emit the definition of a type used only by pointer
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 25 Apr 2014 05:16:29 +0000 (22:16 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 25 Apr 2014 05:16:29 +0000 (22:16 -0700)
gdb/testsuite/
* gdb.stabs/gdb11479.c (tag_dummy_enum): introduce a variable to cause
clang to emit the full definition of type required by the test
* gdb.stabs/gdb11479.exp (do_test): correct a typo in a test message

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.stabs/gdb11479.c
gdb/testsuite/gdb.stabs/gdb11479.exp

index 92a7eee418d724f00ba6e82d3b9103359b26f148..c028cd54f5cc61d862c9339eca3687f82c5089f2 100644 (file)
@@ -1,3 +1,9 @@
+2014-04-24  David Blaikie  <dblaikie@gmail.com>
+
+       * gdb.stabs/gdb11479.c (tag_dummy_enum): introduce a variable to cause
+       clang to emit the full definition of type required by the test
+       * gdb.stabs/gdb11479.exp (do_test): correct a typo in a test message
+
 2014-04-24  David Blaikie  <dblaikie@gmail.com>
 
        * gdb.cp/pr10728-x.cc (main::x): Return by value instead of pointer to
index eb7fcf9d8a66ab6c61bfe49aff055cc095b612d5..f70930f67680b8dbde162efafc81859100265f04 100644 (file)
@@ -55,7 +55,7 @@ struct dummy {
 enum dummy_enum {
   enum1,
   enum2
-};
+} tag_dummy_enum;
 
 void *
 hack (const struct dummy *t, const enum dummy_enum *e)
index b9ed238353868903856aae4a13a0906809707d2d..a2782acf488129b1b2ecf3c33b8033daa06f56a0 100644 (file)
@@ -31,13 +31,13 @@ proc do_test {version} {
     gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \
        "Inspect t in test2 $version"
     # Check that the enum type length has been set to a non-zero value
-    gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (e) in test2 $version"
+    gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (*e) in test2 $version"
     gdb_test "continue" "Breakpoint .* test .*" \
        "Stop at first breakpoint $version"
     gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \
        "Inspect t in test $version"
     # Check that the enum type length has been set to a non-zero value
-    gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (e) in test $version"
+    gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (*e) in test $version"
 }
 
 if { [prepare_for_testing $testfile.exp $testfile $testfile.c {debug additional_flags=-gstabs}] == 0 } {
This page took 0.037678 seconds and 4 git commands to generate.