Debian Codegraph @

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

raw
1 // Test the scan-symbol-section directive.
2 // scan-symbol-section should fail with 'FAIL' if a symbol has a different
3 // section than expected.
4
5 // { dg-do preprocess }
6 // { dg-final { scan-symbol-section "dg-scan-symbol-section-1-exp-F.i" {^_test_symbol_.*$} {nomatch} } }
7 // The above assertion should fail with the following messages:
8 // FAIL: gcc.test-framework/dg-scan-symbol-section-1-exp-F.S scan-symbol-section symbol ^_test_symbol_.*$ (found _test_symbol_1) has section nomatch (found .text)
9 // FAIL: gcc.test-framework/dg-scan-symbol-section-1-exp-F.S scan-symbol-section symbol ^_test_symbol_.*$ (found _test_symbol_2) has section nomatch (found .data)
10 .text
11 _test_symbol_1:
12 .data
13 _test_symbol_2: