Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.dg / invalid-call-1.c
blob7a2f6a07bb3729a020fc4a7fc426bf10608f14c3
1 /* PR rtl-optimization/29841 */
2 /* Testcase by Khem Raj <raj.khem@gmail.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-O2" } */
6 /* { dg-options "-O2 -march=i586" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
8 typedef void (*fp)(void);
9 extern char* bar(void* a1, int a2);
10 extern char* mar(int n);
11 char* cptr;
13 void foo()
15 cptr = mar(6);
16 ((char *(*)(void *,int (*)(void *,unsigned char **),char**))((fp)bar))(0,0,(void*)(0)); /* { dg-warning "function called through a non-compatible type" "non-compatible type" } */