]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/ref4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ref4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ref4.C b/gcc/testsuite/g++.old-deja/g++.pt/ref4.C
deleted file mode 100644 (file)
index 1291dc1..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// 
-// Copyright (C) 2001 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 29 Apr 2001 <nathan@codesourcery.com>
-
-// Bug 2664. We failed to convert_from_reference for non-type
-// template parms.
-
-struct cow { };
-
-cow c;
-
-void func     (cow &c) {}
-void operator-(cow &c) {}
-
-template<cow &C> void test()
-{
-  func(C); //OK
-  -C;      //bogus error
-}
-
-int main()
-{
-  test<c> ();
-}