2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec40.C
blob70abb6fc50f9abee92d842f98100e1e05da469fe
1 // { dg-do run  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 12 Feb 2001 <nathan@codesourcery.com>
5 // More from bug 1617. We didn't resolve partial ordering properly. The
6 // std is rather vague about it anyway, DR 214 talks about this.
8 template <typename T> int Foo (T const *) {return 1;}
9 template <unsigned I> int Foo (char const (&)[I]) {return 2;}
11 int main ()
13   return Foo ("a") != 2;