Debian Codegraph @

gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-2-exp-F.S

raw
1 // Test the scan-symbol-section directive.
2 // scan-symbol-section should fail with 'UNSUPPORTED' if a symbol has no
3 // associated section.
4
5 // { dg-do preprocess }
6 // { dg-final { scan-symbol-section "dg-scan-symbol-section-2-exp-F.i" {^_test_symbol$} {^\.text$} } }
7 // The above assertion should fail with the following message:
8 // FAIL: gcc.test-framework/dg-scan-symbol-section-2-exp-F.S scan-symbol-section symbol ^_test_symbol$ (found _test_symbol) has section ^\\.text$ (no section detected)
9 _test_symbol: