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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libmudflap/] [testsuite/] [libmudflap.c/] [fail31-frag.c] - Blame information for rev 307

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

Line No. Rev Author Line
1 275 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
int h (int i, int j)
13
{
14
  int k[i];
15
  k[j] = i;
16
  p = k;
17
  return j;
18
}
19
 
20
/* { dg-output "mudflap violation 1.*" } */
21
/* { dg-output "Nearby object.*" } */
22
/* { dg-output "mudflap object.*\(h\).*k" } */
23
/* { dg-do run { xfail *-*-* } } */

powered by: WebSVN 2.1.0

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