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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libmudflap/] [testsuite/] [libmudflap.c/] [fail31-frag.c] - Blame information for rev 738

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 738 jeremybenn
#include <stdio.h>
2
#include <stdlib.h>
3
 
4
extern int h (int i, int j);
5
 
6
int main ()
7
{
8
  int z = h (4, 10);
9
  return 0;
10
}
11
int *p;
12
__attribute__((noinline))
13
int h (int i, int j)
14
{
15
  int k[i];
16
  k[j] = i;
17
  p = k;
18
  return j;
19
}
20
 
21
/* { dg-output "mudflap violation 1.*" } */
22
/* { dg-output "Nearby object.*" } */
23
/* { dg-output "mudflap object.*\(h\).*k" } */
24
/* { dg-do run { xfail *-*-* } } */

powered by: WebSVN 2.1.0

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