Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/alignas8.C

raw
1 // PR c++/79380
2 // { dg-do compile { target c++11 } }
3
4 template < typename > constexpr int f () { return 8; }
5
6 // should have been: struct alignas (f<int>()) S {};
7 struct alignas (f) S {}; // { dg-error "17:'alignas' argument has non-integral type" }