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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error25.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
3
// Origin: Steven Bosscher 
4
// PR c++/17401: ICE with invalid pure specifier
5
 
6
// NOTE: This also tests QoI of diagnostic for invalid pure specifiers.
7
//  Please do *not* relax the dg-error tests.
8
 
9
class foo
10
{
11
  virtual void bar1 () = 0;
12
  virtual void bar2 () = __null;  // { dg-error "32:invalid pure specifier" }
13
  virtual void bar3 () = 4;       // { dg-error "27:invalid pure specifier" }
14
  virtual void bar4 () = A::f;    // { dg-error "27:invalid pure specifier" }
15
  virtual void bar5 () = 0l;      // { dg-error "28:invalid pure specifier" }
16
  virtual void bar6 () = 00;      // { dg-error "28:invalid pure specifier" }
17
  virtual void bar7 () = 0x0;     // { dg-error "29:invalid pure specifier" }
18
};

powered by: WebSVN 2.1.0

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