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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [noeffect2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wall" }
3
 
4
// Copyright (C) 2003 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 18 Aug 2003 
6
// Origin PR 11945 gerald@pfeifer.com
7
 
8
// PR 11945 inconsistent warnings
9
 
10
extern "C" void FormatDisk();
11
  template 
12
  struct C {
13
    C(){ FormatDisk(), 0; }  // { dg-warning "right-hand operand of comma" "" }
14
  };
15
  template struct C; // { dg-warning "instantiated" }
16
  template 
17
  void f() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
18
  template void f (); // { dg-warning "instantiated" }
19
void g() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
20
 

powered by: WebSVN 2.1.0

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