aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C
blob: 133755e894db4ecae45f6a3787154a12c909df56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// GROUPS passed code-generation
// Check that declarations with initializations are executed
// correctly.

extern "C" void printf (char *, ...); 

int main ()
{
	char buff[40] ;
	char *tmp = &buff[0];	// also fails for char *tmp = buff;

	if ((unsigned int) tmp != (unsigned int) &buff[0])
	  printf ("FAIL\n");
	else
	  printf ("PASS\n");

	return 0;
}