2 // { dg-options "-Wall" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 18 Aug 2003 <nathan@codesourcery.com>
6 // Origin PR 11945 gerald@pfeifer.com
8 // PR 11945 inconsistent warnings
10 extern "C" void FormatDisk();
13 C(){ FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
15 template struct C<int>; // { dg-warning "instantiated" }
17 void f() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
18 template void f<int> (); // { dg-warning "instantiated" }
19 void g() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }