X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fdeduct5.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fdeduct5.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d47a76692952692886e5a4cb99967249cbe9f052;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/deduct5.C b/gcc/testsuite/g++.old-deja/g++.pt/deduct5.C deleted file mode 100644 index d47a7669..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/deduct5.C +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2000 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 13 Feb 2001 - -// Bug 1960. We were not dealing with qualified array types properly. - -#include - -template int Foo (T const *ptr) -{ - static int count = 0; - - printf ("%s\n", __PRETTY_FUNCTION__); - count++; - - return count; -} - -int main () -{ - static int const cs = 1; - static int const ca[1] = {1}; - static int s = 1; - static int a[1] = {1}; - - Foo (&cs); - Foo (&ca); - if (Foo (&s) != 2) - return 1; - if (Foo (&a) != 2) - return 2; - - return 0; -}