// PR c++/118787 // { dg-do compile { target c++11 } } // { dg-options "-pedantic" } template void foo (T & alignas (N)); // { dg-warning "'alignas' on a type other than class" } template void bar (T (&)[N] alignas (N)); // { dg-warning "'alignas' on a type other than class" } template using U = T * alignas (N); // { dg-warning "'alignas' on a type other than class" } template using V = T[N] alignas (N); // { dg-warning "'alignas' on a type other than class" } void baz () { int x alignas (4) = 0; foo (x); int y alignas (4) [4]; bar (y); U u; V v; }