repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from branches/gcc-4_8-branch up to rev 207411.
[official-gcc.git]
/
gcc-4_8-branch
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr33819.C
blob
a2f868daee3c06b10ce324da269ecb38e811e251
1
/* { 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