Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / overload14.C
blob92142d2fc021d2f79e690e6298ee025a72b0f520
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 18 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1639. We failed to have builtin relop candidates with enumeral type.
8 template <typename T1, typename T2> void operator == (T1, T2);
10 enum E {e1};
11 void operator != (E, E);
13 bool Foo (E e)
15   return e == e1;
17 bool Baz (E e)
19   return e != e1; // { dg-error "" } void not ignored.