diff mbox

[OB] Handle clang naming of function static local variable.

Message ID 047d7b5dbdeab1e148051fcf3b7a@google.com
State New
Headers show

Commit Message

Doug Evans Sept. 15, 2015, 8:43 p.m. UTC
Hi.

This test fails on clang because it names the local variable  
t_structs_a.buf.

Committed as obvious.

2015-09-15  Doug Evans  <dje@google.com>

	* gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
	of function static local variable.


      # Restore default value.
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.base/callfuncs.exp  
b/gdb/testsuite/gdb.base/callfuncs.exp
index 263ec55..fda3cb7 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -222,7 +222,7 @@  proc do_function_calls {} {
  	    "call inferior func with struct - returns long double _Complex"
      }

-    gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<buf.*>  
\"foo\"" \
+    gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char ..  
)?<.*buf.*> \"foo\"" \
      	"call inferior func with struct - returns char *"