language: C++11 (gcc-4.7.2)
date: 607 days 3 hours ago
link:
visibility: public
1
2
3
4
5
struct nibbles { unsigned lo : 4; unsigned hi : 4; };
 
int main() {
        static_assert(alignof(nibbles) <= alignof(char),"Alignment of nibbles should not be stricter than char!");
}
prog.cpp: In function 'int main()':
prog.cpp:4:2: error: static assertion failed: "Alignment of nibbles should not be stricter than char!"