2012-09-17 13:47:18 +02:00
|
|
|
int i = alignof(int);
|
|
|
|
int t = alignof(C::foo) * 7 + alignof(Foo *);
|
2014-07-15 12:37:19 +02:00
|
|
|
|
|
|
|
struct alignas(f()) Foo {};
|
|
|
|
struct alignas(42) Foo {};
|
|
|
|
struct alignas(double) Bar {};
|
|
|
|
alignas(Foo) alignas(Bar) Foo *buffer;
|
|
|
|
struct alignas(Mooze...) Gnarf {};
|