X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fdebug%2Fdebug3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fdebug%2Fdebug3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=14cd7c5a6cf9e9cd1446740260dd56b41413ac78;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/debug/debug3.C b/gcc/testsuite/g++.dg/debug/debug3.C deleted file mode 100644 index 14cd7c5a..00000000 --- a/gcc/testsuite/g++.dg/debug/debug3.C +++ /dev/null @@ -1,48 +0,0 @@ -// PR optimization/5547 -// This testcase caused ICE on IA-32, since DWARF-2 was unable -// to emit location expression for parameter a of operator+. -// { dg-do compile } -// { dg-options "-fpic" } -// { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } - -struct A { char *s; }; - -inline A operator+ (char a, const A &b) -{ - A s; - s.s = new char[12]; - s.s[0] = a; - return s; -} - -int b (const A &); - -void test1 (const A &x, int y) -{ - int j = b ("012345"[y] + x); - for (int i = 0; i < y; i++); -} - -void test2 (const A &x, int y) -{ - int j = b ("012345678"[y + 2] + x); - for (int i = 0; i < y; i++); -} - -void test3 (const A &x, int y) -{ - int j = b ("012345678"[y - 6] + x); - for (int i = 0; i < y; i++); -} - -void test4 (const A &x, int y) -{ - int j = b ("012345678"[2 * y - 10] + x); - for (int i = 0; i < y; i++); -} - -void test5 (const A &x, int y) -{ - int j = b ("012345678"[4 * y] + x); - for (int i = 0; i < y; i++); -}