X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fsizeof3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fsizeof3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=fbdd5c3c60d6aec1f540485990839706f515da98;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/sizeof3.C b/gcc/testsuite/g++.old-deja/g++.other/sizeof3.C deleted file mode 100644 index fbdd5c3c..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/sizeof3.C +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (C) 1999 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 5 Sep 1999 - -// C++ does not decay lvalues into rvalues until as late as possible. This -// means things like the rhs of a comma operator mustn't decay. This will make -// a difference if it is an array or function. - -extern void abort(); - -int main (int argc, char **argv) -{ - int ary[10]; - int ary1[10]; - - if (sizeof (0,ary) != sizeof (ary)) - abort (); - if (sizeof (argc ? ary : ary1) != sizeof (ary)) - abort (); - return 0; -}