[clang] [BoundsSafety] Support bounds-safety attributes in type positions (PR #179612)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 3 22:18:04 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 52696 tests passed
* 741 tests skipped
* 8 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/attr-counted-by-late-parsed-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.*}} implicit 'struct on_pointer_anon_count::(anonymous at {{.*}})'
# | ^
# | <stdin>:24:63: note: scanning from here
# | | `-FieldDecl 0x166b3198 <line:24:5, col:9> col:9 count 'int'
# | ^
# | <stdin>:25:2: note: possible intended match here
# | |-FieldDecl 0x166b3268 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c:23:3)'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: | |-FieldDecl 0x166b2e80 <line:14:3, col:22> col:22 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | 20: | `-FieldDecl 0x166b2ee8 <line:15:3, col:7> col:7 referenced count 'int'
# | 21: `-RecordDecl 0x166b2fe0 <line:21:1, line:26:1> line:21:8 struct on_pointer_anon_count definition
# | 22: |-FieldDecl 0x166b30b0 <line:22:3, col:22> col:22 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | 23: |-RecordDecl 0x166b3100 <line:23:3, line:25:3> line:23:3 struct definition
# | 24: | `-FieldDecl 0x166b3198 <line:24:5, col:9> col:9 count 'int'
# | next:32'0 X error: no match found
# | 25: |-FieldDecl 0x166b3268 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:32'1 ? possible intended match
# | 26: `-IndirectFieldDecl 0x166b32c8 <line:24:9> col:9 implicit referenced count 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: |-Field 0x166b3268 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: `-Field 0x166b3198 'count' 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.*}} implicit 'struct on_pointer_anon_count::(anonymous at {{.*}})'
# | ^
# | <stdin>:24:63: note: scanning from here
# | | `-FieldDecl 0x21b1fcd8 <line:24:5, col:9> col:9 count 'int'
# | ^
# | <stdin>:25:2: note: possible intended match here
# | |-FieldDecl 0x21b1fda8 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: | |-FieldDecl 0x21b1f9c0 <line:14:3, col:22> col:22 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | 20: | `-FieldDecl 0x21b1fa28 <line:15:3, col:7> col:7 referenced count 'int'
# | 21: `-RecordDecl 0x21b1fb20 <line:21:1, line:26:1> line:21:8 struct on_pointer_anon_count definition
# | 22: |-FieldDecl 0x21b1fbf0 <line:22:3, col:22> col:22 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | 23: |-RecordDecl 0x21b1fc40 <line:23:3, line:25:3> line:23:3 struct definition
# | 24: | `-FieldDecl 0x21b1fcd8 <line:24:5, col:9> col:9 count 'int'
# | next:32'0 X error: no match found
# | 25: |-FieldDecl 0x21b1fda8 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:32'1 ? possible intended match
# | 26: `-IndirectFieldDecl 0x21b1fe08 <line:24:9> col:9 implicit referenced count 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: |-Field 0x21b1fda8 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: `-Field 0x21b1fcd8 'count' 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-counted-by-or-null-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:27:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf::(anonymous at [[ANON_STRUCT_PATH:.+]])'
# | ^
# | <stdin>:25:130: note: scanning from here
# | | | `-FieldDecl 0x33a1e9f0 <line:34:5, col:24> col:24 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | ^
# | <stdin>:30:34: note: possible intended match here
# | |-RecordDecl 0x33a1ec10 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:72:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf_ty_pos::(anonymous at [[ANON_STRUCT_PATH2:.+]])'
# | ^
# | <stdin>:47:130: note: scanning from here
# | | | `-FieldDecl 0x33a20700 <line:79:5, col:53> col:53 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | ^
# | <stdin>:52:34: note: possible intended match here
# | `-RecordDecl 0x33a20920 <line:90:1, line:95:1> line:90:8 struct on_pointer_anon_count_ty_pos definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:86:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_count_ty_pos::(anonymous at [[ANON_STRUCT_PATH3:.+]])'
# | ^
# | <stdin>:54:63: note: scanning from here
# | | `-FieldDecl 0x33a20a38 <line:92:5, col:9> col:9 count 'int'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: | |-FieldDecl 0x33a1e5f8 <line:19:3, col:7> col:7 referenced count 'int'
# | 21: | `-FieldDecl 0x33a1e740 <line:20:3, col:23> col:23 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | 22: |-RecordDecl 0x33a1e838 <line:31:1, line:36:1> line:31:8 struct on_pointer_anon_buf definition
# | 23: | |-FieldDecl 0x33a1e8d0 <line:32:3, col:7> col:7 referenced count 'int'
# | 24: | |-RecordDecl 0x33a1e920 <line:33:3, line:35:3> line:33:3 struct definition
# | 25: | | `-FieldDecl 0x33a1e9f0 <line:34:5, col:24> col:24 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:27'0 X error: no match found
# | 26: | |-FieldDecl 0x33a1eb38 <line:33:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: | `-IndirectFieldDecl 0x33a1eb98 <line:34:24> col:24 implicit buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: | |-Field 0x33a1eb38 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: | `-Field 0x33a1e9f0 'buf' 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: |-RecordDecl 0x33a1ec10 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:27'1 ? possible intended match
# | 31: | |-RecordDecl 0x33a1ec90 <line:39:3, line:41:3> line:39:3 struct definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: | | `-FieldDecl 0x33a1ed28 <line:40:5, col:9> col:9 count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: | |-FieldDecl 0x33a1edf8 <line:39:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: | |-IndirectFieldDecl 0x33a1ee58 <line:40:9> col:9 implicit referenced count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: | | |-Field 0x33a1edf8 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 42: | |-FieldDecl 0x33a1f310 <line:64:3, col:7> col:7 referenced count 'int'
# | 43: | `-FieldDecl 0x33a20458 <line:65:3, col:51> col:51 buf 'struct size_known ** __counted_by_or_null(count)':'struct size_known **'
# | 44: |-RecordDecl 0x33a20548 <line:76:1, line:81:1> line:76:8 struct on_pointer_anon_buf_ty_pos definition
# | 45: | |-FieldDecl 0x33a205e0 <line:77:3, col:7> col:7 referenced count 'int'
# | 46: | |-RecordDecl 0x33a20630 <line:78:3, line:80:3> line:78:3 struct definition
# | 47: | | `-FieldDecl 0x33a20700 <line:79:5, col:53> col:53 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:72'0 X error: no match found
# | 48: | |-FieldDecl 0x33a20848 <line:78:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:78:3)'
# | next:72'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: | `-IndirectFieldDecl 0x33a208a8 <line:79:53> col:53 implicit buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:72'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: | |-Field 0x33a20848 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:78:3)'
# | next:72'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 51: | `-Field 0x33a20700 'buf' 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:72'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: `-RecordDecl 0x33a20920 <line:90:1, line:95:1> line:90:8 struct on_pointer_anon_count_ty_pos definition
# | next:72'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:72'1 ? possible intended match
# | 53: |-RecordDecl 0x33a209a0 <line:91:3, line:93:3> line:91:3 struct definition
# | 54: | `-FieldDecl 0x33a20a38 <line:92:5, col:9> col:9 count 'int'
# | next:86 X error: no match found
# | 55: |-FieldDecl 0x33a20b08 <line:91:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:91:3)'
# | next:86 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 56: |-IndirectFieldDecl 0x33a20b68 <line:92:9> col:9 implicit referenced count 'int'
# | next:86 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 57: | |-Field 0x33a20b08 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-or-null-struct-ptrs.c:91:3)'
# | next:86 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: | `-Field 0x33a20a38 'count' 'int'
# | next:86 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: `-FieldDecl 0x33a20c00 <line:94:3, col:50> col:50 buf 'struct size_known * __counted_by_or_null(count)':'struct size_known *'
# | next:86 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-counted-by-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:27:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf::(anonymous at [[ANON_STRUCT_PATH:.+]])'
# | ^
# | <stdin>:25:122: note: scanning from here
# | | | `-FieldDecl 0x174d5520 <line:34:5, col:24> col:24 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | ^
# | <stdin>:30:34: note: possible intended match here
# | |-RecordDecl 0x174d5740 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:69:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf_ty_pos::(anonymous at [[ANON_STRUCT_PATH2:.+]])'
# | ^
# | <stdin>:47:122: note: scanning from here
# | | | `-FieldDecl 0x174d7230 <line:76:5, col:45> col:45 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | ^
# | <stdin>:52:34: note: possible intended match here
# | `-RecordDecl 0x174d7450 <line:87:1, line:92:1> line:87:8 struct on_pointer_anon_count_ty_pos definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:83:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_count_ty_pos::(anonymous at [[ANON_STRUCT_PATH3:.+]])'
# | ^
# | <stdin>:54:63: note: scanning from here
# | | `-FieldDecl 0x174d7568 <line:89:5, col:9> col:9 count 'int'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: | |-FieldDecl 0x174d5128 <line:19:3, col:7> col:7 referenced count 'int'
# | 21: | `-FieldDecl 0x174d5270 <line:20:3, col:23> col:23 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | 22: |-RecordDecl 0x174d5368 <line:31:1, line:36:1> line:31:8 struct on_pointer_anon_buf definition
# | 23: | |-FieldDecl 0x174d5400 <line:32:3, col:7> col:7 referenced count 'int'
# | 24: | |-RecordDecl 0x174d5450 <line:33:3, line:35:3> line:33:3 struct definition
# | 25: | | `-FieldDecl 0x174d5520 <line:34:5, col:24> col:24 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:27'0 X error: no match found
# | 26: | |-FieldDecl 0x174d5668 <line:33:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: | `-IndirectFieldDecl 0x174d56c8 <line:34:24> col:24 implicit buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: | |-Field 0x174d5668 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: | `-Field 0x174d5520 'buf' 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: |-RecordDecl 0x174d5740 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:27'1 ? possible intended match
# | 31: | |-RecordDecl 0x174d57c0 <line:39:3, line:41:3> line:39:3 struct definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: | | `-FieldDecl 0x174d5858 <line:40:5, col:9> col:9 count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: | |-FieldDecl 0x174d5928 <line:39:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: | |-IndirectFieldDecl 0x174d5988 <line:40:9> col:9 implicit referenced count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: | | |-Field 0x174d5928 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 42: | |-FieldDecl 0x174d5e40 <line:61:3, col:7> col:7 referenced count 'int'
# | 43: | `-FieldDecl 0x174d6f88 <line:62:3, col:43> col:43 buf 'struct size_known ** __counted_by(count)':'struct size_known **'
# | 44: |-RecordDecl 0x174d7078 <line:73:1, line:78:1> line:73:8 struct on_pointer_anon_buf_ty_pos definition
# | 45: | |-FieldDecl 0x174d7110 <line:74:3, col:7> col:7 referenced count 'int'
# | 46: | |-RecordDecl 0x174d7160 <line:75:3, line:77:3> line:75:3 struct definition
# | 47: | | `-FieldDecl 0x174d7230 <line:76:5, col:45> col:45 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:69'0 X error: no match found
# | 48: | |-FieldDecl 0x174d7378 <line:75:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:75:3)'
# | next:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: | `-IndirectFieldDecl 0x174d73d8 <line:76:45> col:45 implicit buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: | |-Field 0x174d7378 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:75:3)'
# | next:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 51: | `-Field 0x174d7230 'buf' 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: `-RecordDecl 0x174d7450 <line:87:1, line:92:1> line:87:8 struct on_pointer_anon_count_ty_pos definition
# | next:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:69'1 ? possible intended match
# | 53: |-RecordDecl 0x174d74d0 <line:88:3, line:90:3> line:88:3 struct definition
# | 54: | `-FieldDecl 0x174d7568 <line:89:5, col:9> col:9 count 'int'
# | next:83 X error: no match found
# | 55: |-FieldDecl 0x174d7638 <line:88:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:88:3)'
# | next:83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 56: |-IndirectFieldDecl 0x174d7698 <line:89:9> col:9 implicit referenced count 'int'
# | next:83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 57: | |-Field 0x174d7638 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-counted-by-struct-ptrs.c:88:3)'
# | next:83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: | `-Field 0x174d7568 'count' 'int'
# | next:83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: `-FieldDecl 0x174d7730 <line:91:3, col:42> col:42 buf 'struct size_known * __counted_by(count)':'struct size_known *'
# | next:83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-sized-by-late-parsed-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.*}} implicit 'struct on_pointer_anon_count::(anonymous at {{.*}})'
# | ^
# | <stdin>:24:63: note: scanning from here
# | | `-FieldDecl 0x10667168 <line:24:5, col:9> col:9 count 'int'
# | ^
# | <stdin>:25:2: note: possible intended match here
# | |-FieldDecl 0x10667238 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c:23:3)'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: | |-FieldDecl 0x10666e50 <line:14:3, col:22> col:22 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | 20: | `-FieldDecl 0x10666eb8 <line:15:3, col:7> col:7 referenced count 'int'
# | 21: `-RecordDecl 0x10666fb0 <line:21:1, line:26:1> line:21:8 struct on_pointer_anon_count definition
# | 22: |-FieldDecl 0x10667080 <line:22:3, col:22> col:22 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | 23: |-RecordDecl 0x106670d0 <line:23:3, line:25:3> line:23:3 struct definition
# | 24: | `-FieldDecl 0x10667168 <line:24:5, col:9> col:9 count 'int'
# | next:32'0 X error: no match found
# | 25: |-FieldDecl 0x10667238 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:32'1 ? possible intended match
# | 26: `-IndirectFieldDecl 0x10667298 <line:24:9> col:9 implicit referenced count 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: |-Field 0x10667238 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: `-Field 0x10667168 'count' 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.*}} implicit 'struct on_pointer_anon_count::(anonymous at {{.*}})'
# | ^
# | <stdin>:24:63: note: scanning from here
# | | `-FieldDecl 0x46c46db8 <line:24:5, col:9> col:9 count 'int'
# | ^
# | <stdin>:25:2: note: possible intended match here
# | |-FieldDecl 0x46c46e88 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: | |-FieldDecl 0x46c46aa0 <line:14:3, col:22> col:22 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | 20: | `-FieldDecl 0x46c46b08 <line:15:3, col:7> col:7 referenced count 'int'
# | 21: `-RecordDecl 0x46c46c00 <line:21:1, line:26:1> line:21:8 struct on_pointer_anon_count definition
# | 22: |-FieldDecl 0x46c46cd0 <line:22:3, col:22> col:22 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | 23: |-RecordDecl 0x46c46d20 <line:23:3, line:25:3> line:23:3 struct definition
# | 24: | `-FieldDecl 0x46c46db8 <line:24:5, col:9> col:9 count 'int'
# | next:32'0 X error: no match found
# | 25: |-FieldDecl 0x46c46e88 <line:23:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:32'1 ? possible intended match
# | 26: `-IndirectFieldDecl 0x46c46ee8 <line:24:9> col:9 implicit referenced count 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: |-Field 0x46c46e88 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c:23:3)'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: `-Field 0x46c46db8 'count' 'int'
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-sized-by-or-null-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:27:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf::(anonymous at [[ANON_STRUCT_PATH:.+]])'
# | ^
# | <stdin>:25:128: note: scanning from here
# | | | `-FieldDecl 0x38fc5740 <line:34:5, col:24> col:24 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | ^
# | <stdin>:30:34: note: possible intended match here
# | |-RecordDecl 0x38fc5960 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:71:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf_ty_pos::(anonymous at [[ANON_STRUCT_PATH2:.+]])'
# | ^
# | <stdin>:47:128: note: scanning from here
# | | | `-FieldDecl 0x38fc7450 <line:78:5, col:51> col:51 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | ^
# | <stdin>:52:34: note: possible intended match here
# | `-RecordDecl 0x38fc7670 <line:89:1, line:94:1> line:89:8 struct on_pointer_anon_count_ty_pos definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:85:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_count_ty_pos::(anonymous at [[ANON_STRUCT_PATH3:.+]])'
# | ^
# | <stdin>:54:63: note: scanning from here
# | | `-FieldDecl 0x38fc7788 <line:91:5, col:9> col:9 count 'int'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: | |-FieldDecl 0x38fc5348 <line:19:3, col:7> col:7 referenced count 'int'
# | 21: | `-FieldDecl 0x38fc5490 <line:20:3, col:23> col:23 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | 22: |-RecordDecl 0x38fc5588 <line:31:1, line:36:1> line:31:8 struct on_pointer_anon_buf definition
# | 23: | |-FieldDecl 0x38fc5620 <line:32:3, col:7> col:7 referenced count 'int'
# | 24: | |-RecordDecl 0x38fc5670 <line:33:3, line:35:3> line:33:3 struct definition
# | 25: | | `-FieldDecl 0x38fc5740 <line:34:5, col:24> col:24 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:27'0 X error: no match found
# | 26: | |-FieldDecl 0x38fc5888 <line:33:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: | `-IndirectFieldDecl 0x38fc58e8 <line:34:24> col:24 implicit buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: | |-Field 0x38fc5888 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: | `-Field 0x38fc5740 'buf' 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: |-RecordDecl 0x38fc5960 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:27'1 ? possible intended match
# | 31: | |-RecordDecl 0x38fc59e0 <line:39:3, line:41:3> line:39:3 struct definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: | | `-FieldDecl 0x38fc5a78 <line:40:5, col:9> col:9 count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: | |-FieldDecl 0x38fc5b48 <line:39:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: | |-IndirectFieldDecl 0x38fc5ba8 <line:40:9> col:9 implicit referenced count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: | | |-Field 0x38fc5b48 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 42: | |-FieldDecl 0x38fc6060 <line:63:3, col:7> col:7 referenced count 'int'
# | 43: | `-FieldDecl 0x38fc71a8 <line:64:3, col:49> col:49 buf 'struct size_known ** __sized_by_or_null(count)':'struct size_known **'
# | 44: |-RecordDecl 0x38fc7298 <line:75:1, line:80:1> line:75:8 struct on_pointer_anon_buf_ty_pos definition
# | 45: | |-FieldDecl 0x38fc7330 <line:76:3, col:7> col:7 referenced count 'int'
# | 46: | |-RecordDecl 0x38fc7380 <line:77:3, line:79:3> line:77:3 struct definition
# | 47: | | `-FieldDecl 0x38fc7450 <line:78:5, col:51> col:51 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:71'0 X error: no match found
# | 48: | |-FieldDecl 0x38fc7598 <line:77:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:77:3)'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: | `-IndirectFieldDecl 0x38fc75f8 <line:78:51> col:51 implicit buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: | |-Field 0x38fc7598 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:77:3)'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 51: | `-Field 0x38fc7450 'buf' 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: `-RecordDecl 0x38fc7670 <line:89:1, line:94:1> line:89:8 struct on_pointer_anon_count_ty_pos definition
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:71'1 ? possible intended match
# | 53: |-RecordDecl 0x38fc76f0 <line:90:3, line:92:3> line:90:3 struct definition
# | 54: | `-FieldDecl 0x38fc7788 <line:91:5, col:9> col:9 count 'int'
# | next:85 X error: no match found
# | 55: |-FieldDecl 0x38fc7858 <line:90:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:90:3)'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 56: |-IndirectFieldDecl 0x38fc78b8 <line:91:9> col:9 implicit referenced count 'int'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 57: | |-Field 0x38fc7858 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-or-null-struct-ptrs.c:90:3)'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: | `-Field 0x38fc7788 'count' 'int'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: `-FieldDecl 0x38fc7950 <line:93:3, col:48> col:48 buf 'struct size_known * __sized_by_or_null(count)':'struct size_known *'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.AST/attr-sized-by-struct-ptrs.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c -ast-dump | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fexperimental-late-parse-attributes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c -ast-dump
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:27:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf::(anonymous at [[ANON_STRUCT_PATH:.+]])'
# | ^
# | <stdin>:25:120: note: scanning from here
# | | | `-FieldDecl 0x1a2c4560 <line:34:5, col:24> col:24 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | ^
# | <stdin>:30:34: note: possible intended match here
# | |-RecordDecl 0x1a2c4780 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:71:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_buf_ty_pos::(anonymous at [[ANON_STRUCT_PATH2:.+]])'
# | ^
# | <stdin>:47:120: note: scanning from here
# | | | `-FieldDecl 0x1a2c6270 <line:78:5, col:43> col:43 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | ^
# | <stdin>:52:34: note: possible intended match here
# | `-RecordDecl 0x1a2c6490 <line:89:1, line:94:1> line:89:8 struct on_pointer_anon_count_ty_pos definition
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:85:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: |-FieldDecl {{.+}} implicit 'struct on_pointer_anon_count_ty_pos::(anonymous at [[ANON_STRUCT_PATH3:.+]])'
# | ^
# | <stdin>:54:63: note: scanning from here
# | | `-FieldDecl 0x1a2c65a8 <line:91:5, col:9> col:9 count 'int'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: | |-FieldDecl 0x1a2c4168 <line:19:3, col:7> col:7 referenced count 'int'
# | 21: | `-FieldDecl 0x1a2c42b0 <line:20:3, col:23> col:23 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | 22: |-RecordDecl 0x1a2c43a8 <line:31:1, line:36:1> line:31:8 struct on_pointer_anon_buf definition
# | 23: | |-FieldDecl 0x1a2c4440 <line:32:3, col:7> col:7 referenced count 'int'
# | 24: | |-RecordDecl 0x1a2c4490 <line:33:3, line:35:3> line:33:3 struct definition
# | 25: | | `-FieldDecl 0x1a2c4560 <line:34:5, col:24> col:24 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:27'0 X error: no match found
# | 26: | |-FieldDecl 0x1a2c46a8 <line:33:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: | `-IndirectFieldDecl 0x1a2c4708 <line:34:24> col:24 implicit buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: | |-Field 0x1a2c46a8 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:33:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: | `-Field 0x1a2c4560 'buf' 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: |-RecordDecl 0x1a2c4780 <line:38:1, line:43:1> line:38:8 struct on_pointer_anon_count definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:27'1 ? possible intended match
# | 31: | |-RecordDecl 0x1a2c4800 <line:39:3, line:41:3> line:39:3 struct definition
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: | | `-FieldDecl 0x1a2c4898 <line:40:5, col:9> col:9 count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: | |-FieldDecl 0x1a2c4968 <line:39:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: | |-IndirectFieldDecl 0x1a2c49c8 <line:40:9> col:9 implicit referenced count 'int'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: | | |-Field 0x1a2c4968 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:39:3)'
# | next:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 42: | |-FieldDecl 0x1a2c4e80 <line:63:3, col:7> col:7 referenced count 'int'
# | 43: | `-FieldDecl 0x1a2c5fc8 <line:64:3, col:41> col:41 buf 'struct size_known ** __sized_by(count)':'struct size_known **'
# | 44: |-RecordDecl 0x1a2c60b8 <line:75:1, line:80:1> line:75:8 struct on_pointer_anon_buf_ty_pos definition
# | 45: | |-FieldDecl 0x1a2c6150 <line:76:3, col:7> col:7 referenced count 'int'
# | 46: | |-RecordDecl 0x1a2c61a0 <line:77:3, line:79:3> line:77:3 struct definition
# | 47: | | `-FieldDecl 0x1a2c6270 <line:78:5, col:43> col:43 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:71'0 X error: no match found
# | 48: | |-FieldDecl 0x1a2c63b8 <line:77:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:77:3)'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: | `-IndirectFieldDecl 0x1a2c6418 <line:78:43> col:43 implicit buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: | |-Field 0x1a2c63b8 field_index 1 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:77:3)'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 51: | `-Field 0x1a2c6270 'buf' 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: `-RecordDecl 0x1a2c6490 <line:89:1, line:94:1> line:89:8 struct on_pointer_anon_count_ty_pos definition
# | next:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:71'1 ? possible intended match
# | 53: |-RecordDecl 0x1a2c6510 <line:90:3, line:92:3> line:90:3 struct definition
# | 54: | `-FieldDecl 0x1a2c65a8 <line:91:5, col:9> col:9 count 'int'
# | next:85 X error: no match found
# | 55: |-FieldDecl 0x1a2c6678 <line:90:3> col:3 implicit 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:90:3)'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 56: |-IndirectFieldDecl 0x1a2c66d8 <line:91:9> col:9 implicit referenced count 'int'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 57: | |-Field 0x1a2c6678 field_index 0 'struct (anonymous at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/attr-sized-by-struct-ptrs.c:90:3)'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: | `-Field 0x1a2c65a8 'count' 'int'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: `-FieldDecl 0x1a2c6770 <line:93:3, col:40> col:40 buf 'struct size_known * __sized_by(count)':'struct size_known *'
# | next:85 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/179612
More information about the cfe-commits
mailing list