aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/gdb11479.exp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-24 22:16:29 -0700
committerDavid Blaikie <dblaikie@gmail.com>2014-04-24 22:16:29 -0700
commitbfd39632142cba581a430e41ed38c5153d1fc07a (patch)
treef7337f7e52c713bd111696c6f541f53fa7ed6641 /gdb/testsuite/gdb.stabs/gdb11479.exp
parent22842ff63e28b86e0cd40a87186757b2525578f4 (diff)
downloadgdb-bfd39632142cba581a430e41ed38c5153d1fc07a.zip
gdb-bfd39632142cba581a430e41ed38c5153d1fc07a.tar.gz
gdb-bfd39632142cba581a430e41ed38c5153d1fc07a.tar.bz2
Cause clang to emit the definition of a type used only by pointer
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
Diffstat (limited to 'gdb/testsuite/gdb.stabs/gdb11479.exp')
-rw-r--r--gdb/testsuite/gdb.stabs/gdb11479.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.stabs/gdb11479.exp b/gdb/testsuite/gdb.stabs/gdb11479.exp
index b9ed238..a2782ac 100644
--- a/gdb/testsuite/gdb.stabs/gdb11479.exp
+++ b/gdb/testsuite/gdb.stabs/gdb11479.exp
@@ -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 } {