gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-merge.c
raw| 1 | /* Verify that mergeable strings are used in the CU DIE. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target string_merging } */ |
| 4 | /* { dg-options "-O2 -gdwarf -dA" } */ |
| 5 | /* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" } } */ |
| 6 | /* { dg-final { scan-assembler-not "GNU C\[^\\n\\r\]*DW_AT_producer" } } */ |
| 7 | |
| 8 | void func (void) |
| 9 | { |
| 10 | } |