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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [p18298.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
#include <stdbool.h>
2
#include <stdlib.h>
3
int strcmp (const char*, const char*);
4
char s[2048] = "a";
5
inline bool foo(const char *str) {
6
  return !strcmp(s,str);
7
}
8
int main() {
9
int i = 0;
10
  while(!(foo(""))) {
11
    i ++;
12
    s[0] = '\0';
13
    if (i>2)
14
     abort ();
15
  }
16
  return 0;
17
}
18
 

powered by: WebSVN 2.1.0

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