X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fcomponent1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fcomponent1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=3041a23193fabea3b02c7e9dc80fa4c6413d1b0b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/other/component1.C b/gcc/testsuite/g++.dg/other/component1.C deleted file mode 100644 index 3041a231..00000000 --- a/gcc/testsuite/g++.dg/other/component1.C +++ /dev/null @@ -1,29 +0,0 @@ -// { dg-do compile } - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 28 Dec 2001 - -// PR 5123. ICE - -struct C { - template void f(T); - void g (); - void g (int); -}; - -void Foo () { - C c; - - (c.g) (); - (c.f) (1); - - (c.f) (2); - - c.g; // { dg-error "statement cannot resolve" "" } - c.f; // { dg-error "statement cannot resolve" "" } - c.f; // { dg-error "statement cannot resolve" "" } - - c.g == 1; // { dg-error "invalid use of" "" } - c.f == 1; // { dg-error "invalid use of" "" } - c.f == 1; // { dg-error "invalid use of" "" } -};