]>
gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.dg/debug/20020224-1.c
1 /* { dg-options "-g3 -O" } */
2 /* { dg-do compile } */
4 /* Here's the deal: f4 is inlined into main, f3 is inlined into f4, f2 is
5 inlined into f1. The DIE of main should contain DW_TAG_inlined_subroutines
6 children for f4, f3, f2 and f1. Also, there should be a DIE representing
7 and out of line instance of f4, aside the DIE representing its abstract
9 We used to fail to emit debugging info for t1, because it was moved
10 inside the (inlined) block of f1, marked as abstract, then we'd crash. */
12 #define UNUSED __attribute__((unused))
13 #define EXT __extension__
25 f1 (EXT ({ int t1 UNUSED
; undef (); }));
34 EXT ({ int t2 UNUSED
; if (0) undef (); 0; })
35 && EXT ({ int t3 UNUSED
; if (0) undef (); 0; });
52 EXT ({ undef (); 1; }) && EXT ({ int t4 UNUSED
= ({ 1; }); 1; });
56 EXT ({ int t5 UNUSED
; if (0) undef (); 0; });
This page took 0.039593 seconds and 5 git commands to generate.