blob: 73d836a9ff36b2da8b36ea4a6019459fe35f1990 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
20041212-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) //Bug #2903
/* A function pointer compared with a void pointer should not be canonicalized.
See PR middle-end/17564. */
void *f (void);
void *
f (void)
{
return f;
}
#endif // There was no line here.
void
testTortureExecute (void)
{
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) //Bug #2903
if (f () != f)
ASSERT (0);
return;
#endif
}
|