aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/mlt2.c
blob: 2fd5b0f22d521184ae99b38b36da3fdd67646263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Test that -g overrides -g1.  */
/* Origin: Cary Coutant  <ccoutant@google.com> */
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf-2 -dA -g1 -g" } */
/* { dg-final { scan-assembler "DW_AT_stmt_list" } } */
/* { dg-final { scan-assembler "DW_TAG_subprogram" } } */
/* { dg-final { scan-assembler "DW_TAG_inlined_subroutine" } } */
/* { dg-final { scan-assembler "DW_TAG_variable" } } */
/* { dg-final { scan-assembler "DW_TAG_formal_parameter" } } */
/* { dg-final { scan-assembler "DW_TAG_base_type" } } */

static inline __attribute__((always_inline)) int
a(int i, int j)
{
  return (i << 5) + j;
}

int
b(int i, int j)
{
  return (i >> 5) + (j << 27);
}

int
c(int i, int j)
{
  int r = a(i, j);
  r = b(r, i);
  r = b(r, j);
  return r;
}