aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-1-exp-F.S
blob: b4d5b47734858d20853400aa63d575aa49f27ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test the scan-symbol-section directive.
// scan-symbol-section should fail with 'FAIL' if a symbol has a different
// section than expected.

// { dg-do preprocess }
// { dg-final { scan-symbol-section "dg-scan-symbol-section-1-exp-F.i" {^_test_symbol_.*$} {nomatch} } }
// The above assertion should fail with the following messages:
// 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)
// 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)
    .text
_test_symbol_1:
    .data
_test_symbol_2: