mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
20 lines
184 B
C
20 lines
184 B
C
extern void abort(void);
|
|
void foo(int *p)
|
|
{
|
|
int x;
|
|
int y;
|
|
x = *p;
|
|
*p = 0;
|
|
y = *p;
|
|
if (x != y)
|
|
return;
|
|
abort ();
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int a = 1;
|
|
foo(&a);
|
|
return 0;
|
|
}
|