diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-08-19 07:34:40 +0000 |
---|---|---|
committer | Jeffrey A Law <law@cygnus.com> | 1997-08-19 07:34:40 +0000 |
commit | 78f6ae13813180b99245b321ade25c3213ec7f81 (patch) | |
tree | 335fa7ed68bccaabc938e142eabc167ac296372e /gcc/testsuite/g++.old-deja/g++.jason/rfg14.C | |
parent | 2fbf616b6e3115dd2835a13f83daee00913fdcbf (diff) |
Initial revision
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg14.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg14.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg14.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg14.C new file mode 100644 index 00000000000..8475ecd6c81 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg14.C @@ -0,0 +1,15 @@ +void *vp; +int (*ap)[]; +struct S *sp; +union U *up; +int (*fp)(); + +void +test () +{ + vp++; /* ERROR - incrementing void * */ + ap++; /* ERROR - incrementing ptr to incomplete type */ + sp++; /* ERROR - incrementing ptr to incomplete type */ + up++; /* ERROR - incrementing ptr to incomplete type */ + fp++; /* ERROR - incrementing ptr to function */ +} |