aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/prod-options.c
blob: 19457173eb3f301daf8ccdfb6e6d8a3353c4d0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Verify that the DW_AT_producer does not contain certain compiler options
   such as -fdebug-prefix-map=; this is undesirable since path names make
   the build not reproducible.  Other skipped options could be tested here
   as well.  */
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf -dA -fno-merge-debug-strings -fdebug-prefix-map=a=b" } */
/* { dg-final { scan-assembler "\"GNU C\[^\\n\\r\]+ DW_AT_producer" } } */
/* { dg-final { scan-assembler-not "debug-prefix-map" } } */

void func (void)
{
}