aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/c-testsuite/tests/single-exec/00058.c
blob: 59077dfbc726458bb5ed24a6449b9bed9e8c68cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int main()
{
	char * s;
	
	s = "abc" "def";
	if(s[0] != 'a') return 1;
	if(s[1] != 'b') return 2;
	if(s[2] != 'c') return 3;
	if(s[3] != 'd') return 4;
	if(s[4] != 'e') return 5;
	if(s[5] != 'f') return 6;
	if(s[6] != 0) return 7;
	
	return 0;
}