summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
blob: 0e89e117fbf6db19ccba708b0f1bb42ffbf977b3 (plain)
1
2
3
4
5
6
7
8
9
10
// PR 26790
// { dg-do compile }

struct A;

A foo()  // { dg-error "incomplete" }
{
    A a; // { dg-error "incomplete" }
    return a;
}