OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [noeffect2.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// { dg-options "-Wall" }
// { dg-options "-Wall" }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 18 Aug 2003 
// Contributed by Nathan Sidwell 18 Aug 2003 
// Origin PR 11945 gerald@pfeifer.com
// Origin PR 11945 gerald@pfeifer.com
// PR 11945 inconsistent warnings
// PR 11945 inconsistent warnings
extern "C" void FormatDisk();
extern "C" void FormatDisk();
  template 
  template 
  struct C {
  struct C {
    C(){ FormatDisk(), 0; }  // { dg-warning "right-hand operand of comma" "" }
    C(){ FormatDisk(), 0; }  // { dg-warning "right-hand operand of comma" "" }
  };
  };
  template struct C; // { dg-warning "instantiated" }
  template struct C; // { dg-warning "instantiated" }
  template 
  template 
  void f() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
  void f() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
  template void f (); // { dg-warning "instantiated" }
  template void f (); // { dg-warning "instantiated" }
void g() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
void g() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.