File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
clang/test/CodeCompletion Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:0:1 %s -o -
2- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:1:0 %s -o -
3-
41// Related to #139375
52// Clang uses 1-based indexing for source locations given from the command-line.
6- // Verify Clang doesn’t crash when 0 is given as line or column number.
3+ // Verify that Clang rejects 0 as an invalid value for line or column number.
4+
5+ // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:0:1 %s -o - 2>&1 \
6+ // RUN: | FileCheck -check-prefix=CHECK-DIAG %s
7+ // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:1:0 %s -o - 2>&1 \
8+ // RUN: | FileCheck -check-prefix=CHECK-DIAG %s
9+
10+ // CHECK-DIAG: error: invalid value '{{.*}}' in '-code-completion-at={{.*}}'
You can’t perform that action at this time.
0 commit comments