OSDN Git Service

* g++.dg/template/friend19.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / spec40.C
1 // { dg-do run  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 12 Feb 2001 <nathan@codesourcery.com>
4
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.
7
8 template <typename T> int Foo (T const *) {return 1;}
9 template <unsigned I> int Foo (char const (&)[I]) {return 2;}
10
11 int main ()
12 {
13   return Foo ("a") != 2;
14 }