1 /* { dg-do compile } */
2 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
3 /* { dg-options "-mthumb -Os" } */
4 /* { dg-final { scan-assembler "push\t\{r3" } } */
5 /* { dg-final { scan-assembler-not "r8" } } */
7 extern int hist_verify;
8 extern char *pre_process_line (char*);
9 extern char* str_cpy (char*, char*);
10 extern int str_len (char*);
11 extern char* x_malloc (int);
12 #define savestring(x) (char *)str_cpy (x_malloc (1 + str_len (x)), (x))
15 history_expand_line_internal (char* line)
20 old_verify = hist_verify;
22 new_line = pre_process_line (line);
23 hist_verify = old_verify;
24 return (new_line == line) ? savestring (line) : new_line;