mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
25 lines
418 B
C
25 lines
418 B
C
/* The composite type of int and an enum compatible with int might be
|
|
either of the two types, but it isn't an unsigned type. */
|
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
|
|
|
#include <limits.h>
|
|
|
|
//#include <stdio.h>
|
|
|
|
extern void abort (void);
|
|
extern void exit (int);
|
|
|
|
enum e { a = INT_MIN };
|
|
|
|
int *p;
|
|
enum e *q;
|
|
int
|
|
main (void)
|
|
{
|
|
enum e x = a;
|
|
q = &x;
|
|
if (*(1 ? q : p) > 0)
|
|
abort ();
|
|
exit (0);
|
|
}
|