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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [enum1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-options "-Wno-overflow" } */
2
 
3
#ifndef __SIZEOF_INT128__
4
#define UNACCEPT 0xffffffffffffffffLL
5
#else
6
#define UNACCEPT ~((unsigned __int128) 0)
7
#endif
8
 
9
enum test {
10
  acceptable = -1,
11
  unacceptable = UNACCEPT
12
}; // { dg-error "" }
13
 
14
enum test t = acceptable, u = unacceptable;
15
 
16
int main() {
17
    return 0;
18
}

powered by: WebSVN 2.1.0

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