Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/pr89566.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* PR tree-optimization/89566 */ | |
2 /* { dg-do compile } */ | |
3 | |
4 typedef struct FILE { int i; } FILE; | |
5 #ifdef __cplusplus | |
6 extern "C" | |
7 #endif | |
8 int fprintf (FILE *, const char *, ...); | |
9 | |
10 int | |
11 main () | |
12 { | |
13 ((void (*)()) fprintf) (); // { dg-warning "function called through a non-compatible type" "" { target c } } | |
14 return 0; | |
15 } |