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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [libmudflap/] [testsuite/] [libmudflap.c/] [pass54-frag.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 275 jeremybenn
struct k
2
{
3
  struct {
4
    int b;
5
    int c;
6
  } a;
7
};
8
 
9
static struct k l;
10
static struct k m;
11
 
12
void foo ()
13
{
14
  /* This should not be instrumented. */
15
  l.a.b = 5;
16
}
17
 
18
void bar ()
19
{
20
  /* This should not be instrumented. */
21
  m.a.b = 5;
22
}
23
 
24
int main ()
25
{
26
  /* Force TREE_ADDRESSABLE on "l" only.  */
27
  volatile int *k = & l.a.c;
28
  *k = 8;
29
  __mf_set_options ("-mode-violate");
30
  foo ();
31
  bar ();
32
  __mf_set_options ("-mode-check");
33
  return 0;
34
}

powered by: WebSVN 2.1.0

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