FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec40.C
blob2d0ad90088cfb53e7638a9f71a0f1d1018636e1e
1 // Copyright (C) 2000 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 12 Feb 2001 <nathan@codesourcery.com>
4 // More from bug 1617. We didn't resolve partial ordering properly. The
5 // std is rather vague about it anyway, DR 214 talks about this.
7 template <typename T> int Foo (T const *) {return 1;}
8 template <unsigned I> int Foo (char const (&)[I]) {return 2;}
10 int main ()
12   return Foo ("a") != 2;