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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-46336.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/46336
2
// { dg-options -std=c++0x }
3
 
4
extern "C" {
5
  enum A { };
6
  inline constexpr A
7
  f(A a, A b)                   // { dg-error "previous declaration" }
8
  { return A(static_cast(a) & static_cast(b)); }
9
  enum B { };
10
  inline constexpr B
11
  f(B a, B b)                   // { dg-error "C function" }
12
  { return B(static_cast(a) & static_cast(b)); }
13
}
14
 

powered by: WebSVN 2.1.0

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