summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error12.C
blob: 253561e8febaff4d9d77a043bd5eee8060a40b4f (plain)
1
2
3
4
5
6
7
8
9
//PR c++/28292

extern "Java"
{
  struct A
  {
    void foo(void; // { dg-error "before|incomplete type|invalid use" }
  };
}