summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr33819.C
blob: a2f868daee3c06b10ce324da269ecb38e811e251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */

class s
{
public:
  s(long long aa) : a(aa), i1(0) { }
  long long id() const { return (this->a << 16) >> 16; }
  bool operator< (s sv) { return this->a < sv.id(); }
private:
  long long a : 48;
  int i1 : 16;
};
s g(1);
extern "C" void abort (void);
int
main(int, char**)
{
  if (g < (1LL << 38) - 1)
    return 0;
  abort ();
}