summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error58.C
blob: 4e96baf85f14bc95a9fc627f4b1e6fedc076464f (plain)
1
2
3
4
5
6
7
// PR c++/78647
// { dg-do compile { target c++11 } }
// { dg-options "-w" }

struct A;
void foo ();
void f() { alignas (foo (A)); } // { dg-error "expected" }