OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000910-2.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* Copyright (C) 2000  Free Software Foundation  */
2
/* by Alexandre Oliva <aoliva@redhat.com> */
3
 
4
#include <stdlib.h>
5
#include <string.h>
6
 
7
char *list[] = { "*", "e" };
8
 
9
static int bar (const char *fmt) {
10
  return (strchr (fmt, '*') != 0);
11
}
12
 
13
static void foo () {
14
  int i;
15
  for (i = 0; i < sizeof (list) / sizeof (*list); i++) {
16
    const char *fmt = list[i];
17
    if (bar (fmt))
18
      continue;
19
    if (i == 0)
20
      abort ();
21
    else
22
      exit (0);
23
  }
24
}
25
 
26
int main () {
27
  foo ();
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.