URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Copyright (C) 2000 Free Software Foundation */
|
/* Copyright (C) 2000 Free Software Foundation */
|
/* by Alexandre Oliva <aoliva@redhat.com> */
|
/* by Alexandre Oliva <aoliva@redhat.com> */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <string.h>
|
#include <string.h>
|
|
|
char *list[] = { "*", "e" };
|
char *list[] = { "*", "e" };
|
|
|
static int bar (const char *fmt) {
|
static int bar (const char *fmt) {
|
return (strchr (fmt, '*') != 0);
|
return (strchr (fmt, '*') != 0);
|
}
|
}
|
|
|
static void foo () {
|
static void foo () {
|
int i;
|
int i;
|
for (i = 0; i < sizeof (list) / sizeof (*list); i++) {
|
for (i = 0; i < sizeof (list) / sizeof (*list); i++) {
|
const char *fmt = list[i];
|
const char *fmt = list[i];
|
if (bar (fmt))
|
if (bar (fmt))
|
continue;
|
continue;
|
if (i == 0)
|
if (i == 0)
|
abort ();
|
abort ();
|
else
|
else
|
exit (0);
|
exit (0);
|
}
|
}
|
}
|
}
|
|
|
int main () {
|
int main () {
|
foo ();
|
foo ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.