summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/java2.C
blob: 8ba4d5a72c84a39f612207cf4d2bad5344f1f83f (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/???
// { dg-do compile }

extern "Java"
{
  struct A {};
}

typedef void* jclass;

A* p = new A;  // { dg-error "class\\$" }