FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / code-gen2.C
blob72f589392e186851cdfa34840197babeaf50a91d
1 // GROUPS passed code-generation
2 // Check that declarations with initializations are executed
3 // correctly.
5 extern "C" int printf (const char *, ...); 
7 int main ()
9         char buff[40] ;
10         char *tmp = &buff[0];   // also fails for char *tmp = buff;
12         if ((__SIZE_TYPE__) tmp != (__SIZE_TYPE__) &buff[0])
13           { printf ("FAIL\n"); return 1; }
14         else
15           printf ("PASS\n");
17         return 0;