Skip to content

Commit ed70351

Browse files
committed
Update expected stderr.txt for tests/examples/find-global-state
Under gcc 6 we get two notes emitted for line 41 column 5; enabling caret-printing shows they're at: tests/examples/find-global-state/input.c:41:5: note: use of global state "int q" here q += p; ^~ tests/examples/find-global-state/input.c:41:5: note: use of global state "int q" here q += p; ~~^~~~
1 parent 1922c14 commit ed70351

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

run-test-suite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,10 @@ def exclude_tests_below(path):
728728
exclude_test('tests/plugin/callgraph')
729729
exclude_test('tests/plugin/rtl')
730730

731+
# Tests that are over-specified and only work for GCC 6 and later:
732+
if GCC_VERSION < 6000:
733+
exclude_test('tests/examples/find-global-state')
734+
731735
def run_one_test(testdir):
732736
try:
733737
sys.stdout.write('%s: ' % testdir)

tests/examples/find-global-state/stderr.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tests/examples/find-global-state/input.c:41:nn: note: use of global state "int q" here
2+
tests/examples/find-global-state/input.c:41:nn: note: use of global state "int q" here
23
tests/examples/find-global-state/input.c:42:nn: note: use of global state "int q" here
34
tests/examples/find-global-state/input.c:53:nn: note: use of global state "int foo" here
45
tests/examples/find-global-state/input.c:58:nn: note: use of global state "struct

0 commit comments

Comments
 (0)