OSDN Git Service

PR target/48496
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / arm / pr45701-1.c
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" } } */
6
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))
13
14 char *
15 history_expand_line_internal (char* line)
16 {
17   char *new_line;
18   int old_verify;
19
20   old_verify = hist_verify;
21   hist_verify = 0;
22   new_line = pre_process_line (line);
23   hist_verify = old_verify;
24   return (new_line == line) ? savestring (line) : new_line;
25 }