summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alignas8.C
blob: bd76233f4ad5e66aa4d34bf6c759d381398a7f25 (plain)
1
2
3
4
5
6
7
// PR c++/79380
// { dg-do compile { target c++11 } }

template < typename > constexpr int f () {  return 8;  }

// should have been: struct alignas (f<int>()) S {};
struct alignas (f) S {};  // { dg-error "17:'alignas' argument has non-integral type" }