Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr70756-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR c/70756 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wpointer-arith" } */ | |
4 | |
5 extern void bar (void); | |
6 | |
7 void | |
8 fn (void *p) | |
9 { | |
10 void *a = p + 1; /* { dg-warning "15:pointer of type" } */ | |
11 void (*a2)(void) = &bar + 1; /* { dg-warning "27:pointer to a function" } */ | |
12 } |