X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900519_02.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900519_02.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=90dc16a42ece2ace697d22f176ece981cffc4816;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900519_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900519_02.C deleted file mode 100644 index 90dc16a4..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900519_02.C +++ /dev/null @@ -1,32 +0,0 @@ -// g++ 1.37.1 bug 900519_02 - -// The C++ Reference Manual says (in section 8.4.3) "A reference to a plain -// T can only be initialized with a plain T" however g++ allows the -// initialization of plain references with qualified objects in many cases. - -// keywords: references, initialization, type qualifiers - -extern const int cint_obj = 9; -volatile int vint_obj = 9; - -void take_int_ref (int& arg) { } // ERROR - referenced by errors below - -int& global_int_ref0 = cint_obj; // ERROR - -int& global_int_ref1 = vint_obj; // ERROR - - -extern const int& cint_ref; -extern volatile int& vint_ref; - -void test_0 () -{ - int& local_int_ref0 = cint_obj; // ERROR - - int& local_int_ref1 = vint_obj; // ERROR - - - take_int_ref (cint_obj); // ERROR - caught - take_int_ref (vint_obj); // ERROR - - - take_int_ref (cint_ref); // ERROR - - take_int_ref (vint_ref); // ERROR - -} - -int main () { return 0; }