X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fconst1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fconst1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=1d5450a2cc068a956af21bae412c3e17fcd0e487;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/other/const1.C b/gcc/testsuite/g++.dg/other/const1.C deleted file mode 100644 index 1d5450a2..00000000 --- a/gcc/testsuite/g++.dg/other/const1.C +++ /dev/null @@ -1,17 +0,0 @@ -// { dg-do compile } - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 26 Dec 2001 - -// PR 335. Missed diagnostic - -struct Foo -{ - unsigned i; - void Modify(unsigned j) const; -}; - -void Foo::Modify(unsigned j) const -{ - Foo::i = j; // { dg-error "assignment of data-member" "" } -}