2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ref1.C
blobdf4ff470d09605764711d086ed398a93a6ac66f1
1 // { dg-do assemble  }
3 int f();
5 void g()
7   const int& i = f(); // OK
8   int& j = f(); // { dg-error "" } initialization of non-const reference 
9   const volatile int& k = f(); // { dg-error "" } initialization of volatile ref