2 // { dg-options "-Wall" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 14 Aug 2003 <nathan@codesourcery.com>
7 // PR 11512. erroneous warnings
9 template <class T> void Foo(T i)
12 i, i++; // { dg-warning "left operand" "" }
13 i++, i; // { dg-warning "right operand" "" }
20 Foo (1); // { dg-message "required" }
34 i ? i + 1 : i + 2; // { dg-warning "operand of" }