old-cross-binutils/gdb/testsuite/gdb.base/shr2.c
Andreas Arnez b0e59b8f1c Eliminate literal line numbers in shlib-call.exp
Remove the literal line number from a regexp in shlib-call.exp.  Add
an appropriate eye-catcher to shr2.c and refer to that instead.

gdb/testsuite/ChangeLog:

	* gdb.base/shr2.c: Add eye-catcher.
	* gdb.base/shlib-call.exp: Refer to eye-catcher instead of literal
	line number.
2014-11-13 10:20:39 +01:00

17 lines
201 B
C

#ifdef PROTOTYPES
int shr2(int x)
#else
int shr2(x) int x;
#endif
{
return 2*x; /* shr2-return */
}
#ifdef PROTOTYPES
int shr2_local(int x)
#else
int shr2_local(x) int x;
#endif
{
return 2*x;
}