X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp786.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fp786.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b7d19fd568992da380d4e48b23507d68f39bc208;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p786.C b/gcc/testsuite/g++.old-deja/g++.mike/p786.C deleted file mode 100644 index b7d19fd5..00000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/p786.C +++ /dev/null @@ -1,35 +0,0 @@ -// prms-id: 786 - -extern "C" int printf (const char *, ...); -extern "C" void exit(int); -class C - { - int a; -public: - C() {a = 1;} - }; - -void func(const C& a, C& b) -{ - printf ("in const func\n"); - exit(1); -} - -void func(C& a, C& b) -{ - printf ("in non-const func\n"); -} - -void testit(const C& a, C& b) -{ - func(a,b); -} - -int main() -{ - C a; - C b; - - func(a,b); - return 0; -}