| 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-3-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-3-exp-F.S scan-symbol-section symbol ^_test_symbol$ (no symbol detected) has section ^\\.text$ |
| 9 |
.text |
| 10 |
_test_wrong_symbol: |