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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [constant5.C] - Rev 832

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

enum E { 
  a = 24.2, // { dg-error "constant" }
  b = (int)3.7, 
  c = int(4.2),
  d = (int)(4.2 + 3.7), // { dg-error "constant" }
  e = int(4.2 - 3.7), // { dg-error "constant" }
  f = (int)17.25
};

struct S {
  static const int i = (int)4.2;
  int j[(int)4.2];
  static const int k = static_cast<short>(3.7);
};

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

powered by: WebSVN 2.1.0

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