FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ref1.C
blobb6d82aa25ca4cddb23d4aee26b0cfa5e2ab53726
1 // Build don't link:
3 int f();
5 void g()
7   const int& i = f(); // OK
8   int& j = f(); // ERROR - initialization of non-const reference 
9   const volatile int& k = f(); // ERROR - initialization of volatile ref