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