diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-23 15:59:51 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-23 15:59:51 +0000 |
commit | 457556f88e31daea3fe57e4bdf751528438331ac (patch) | |
tree | 834611c09e87709f52ba63aed4621e8b5f75bb29 /gcc/testsuite | |
parent | 208ca064ed26d6cd3bb8ca6fb13743668435b315 (diff) | |
download | gcc-457556f88e31daea3fe57e4bdf751528438331ac.tar.gz |
PR c++/11468
* init.c (build_new_1): Handle error_mark_nodes returned by
build_java_class_ref.
(build_java_class_ref): Do not abort compilation, but return
error_mark_node. Improve error message. Fix indentation.
* g++.dg/other/java2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/java2.C | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b9204ecb726..3b3dc6bac2f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + PR c++/11468 + * g++.dg/other/java2.C: New test. + 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net> PR target/27789 diff --git a/gcc/testsuite/g++.dg/other/java2.C b/gcc/testsuite/g++.dg/other/java2.C new file mode 100644 index 00000000000..8ba4d5a72c8 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/java2.C @@ -0,0 +1,11 @@ +// PR c++/??? +// { dg-do compile } + +extern "Java" +{ + struct A {}; +} + +typedef void* jclass; + +A* p = new A; // { dg-error "class\\$" } |