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.dg/] [debug/] [dwarf2/] [pr29609-2.c] - Blame information for rev 307

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR debug/29609 */
2
/* Verify that breakpoint on both goto failure; stmts is hit.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O0 -gdwarf-2 -dA" } */
5
 
6
extern void abort (void);
7
int x;
8
 
9
int
10
foo (void)
11
{
12
  return 0 ^ x;
13
}
14
 
15
int
16
bar (void)
17
{
18
  return 1 ^ x;
19
}
20
 
21
int
22
baz (void)
23
{
24
  int c;
25
 
26
  if (!foo ())
27
    goto failure;
28
 
29
  if (!bar ())
30
    goto failure;
31
 
32
  return 0;
33
 
34
failure:
35
  return 1;
36
}
37
 
38
int
39
main (void)
40
{
41
  if (baz () != 1)
42
    abort ();
43
  x = 1;
44
  if (baz () != 1)
45
    abort ();
46
  x = 2;
47
  if (baz () != 0)
48
    abort ();
49
  return 0;
50
}
51
 
52
/* { dg-final { scan-assembler "pr29609-2.c:27" } } */
53
/* { dg-final { scan-assembler "pr29609-2.c:30" } } */

powered by: WebSVN 2.1.0

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