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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr33819.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 run } */
2
 
3
class s
4
{
5
public:
6
  s(long long aa) : a(aa), i1(0) { }
7
  long long id() const { return (this->a << 16) >> 16; }
8
  bool operator< (s sv) { return this->a < sv.id(); }
9
private:
10
  long long a : 48;
11
  int i1 : 16;
12
};
13
s g(1);
14
extern "C" void abort (void);
15
int
16
main(int, char**)
17
{
18
  if (g < (1LL << 38) - 1)
19
    return 0;
20
  abort ();
21
}
22
 

powered by: WebSVN 2.1.0

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