PR c++/90736 - bogus error with alignof.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alignof5.C
blob09354d3e1d012fed88768c77999f7e9fe10b2310
1 // PR c++/90736 - bogus error with alignof.
2 // { dg-do compile { target c++11 } }
4 constexpr int fn(const int b) { return b; }
5 constexpr int c = fn(alignof(int));
6 alignas(c) char d;