aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031203-1.c
blob: 70547fdfe5225faca8d30f789320ef1de708f9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void make_file_symbol_completion_list (char *);
/* This tests to make sure PRE doesn't choose the wrong name when
   inserting phi nodes.  Otherwise, we get uses that aren't dominated
   by defs.  
   PR 13177.  */
void location_completer (char *text)
{
	char *p, *symbol_start = text;
	for (p = text; *p != '\0'; ++p) {
		if (*p == '\\' && p[1] == '\'')
			p++;
		else if (*p == ':')
			symbol_start = p + 1;
		else 
			symbol_start = p + 1;
		make_file_symbol_completion_list(symbol_start);
	}
}