[clang] Sema: detect adjusted function prototypes to fix crash with __typeof + __asm + noreturn (#173598) (PR #174092)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 1 08:23:39 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 85243 tests passed
* 1187 tests skipped
* 17 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.AST/ByteCode/c.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/22/include -nostdsysteminc -triple x86_64-linux -verify=expected,all                   -std=c11 -Wcast-qual           /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c -fexperimental-new-constant-interpreter
# 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/22/include -nostdsysteminc -triple x86_64-linux -verify=expected,all -std=c11 -Wcast-qual /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c -fexperimental-new-constant-interpreter
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c Line 363: too few arguments to function call, single argument 'x' was not specified
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c Line 355 'all-warning': a function definition without a prototype is deprecated in all versions of C
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c Line 363 'all-warning': too few arguments
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c Line 376 'all-warning': definition without a prototype
# | error: diagnostics with 'note' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/c.c Line 355: 'foo' declared here
# | 5 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.AST/ast-print-attr-knr.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/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/22/include -nostdsysteminc -ast-print -x c -std=c89 -fms-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-print-attr-knr.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-print-attr-knr.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/22/include -nostdsysteminc -ast-print -x c -std=c89 -fms-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-print-attr-knr.c -o -
# 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/ast-print-attr-knr.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-print-attr-knr.c:5:11: error: CHECK: expected string not found in input
# | // CHECK: int knr(i)
# |           ^
# | <stdin>:1:1: note: scanning from here
# | int knr(int i __attribute__((unused))) {
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-print-attr-knr.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: int knr(int i __attribute__((unused))) { 
# | check:5     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2:  return 0; 
# | check:5     ~~~~~~~~~~~
# |          3: } 
# | check:5     ~~
# |          4: __attribute__((unused)) int knr2(int i) { 
# | check:5     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          5:  return 0; 
# | check:5     ~~~~~~~~~~~
# |          6: } 
# | check:5     ~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Analysis/inline.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/22/include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,debug.ExprInspection -Wno-strict-prototypes -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.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/22/include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,debug.ExprInspection -Wno-strict-prototypes -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 117: too few arguments to function call, single argument 'a' was not specified
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 9: TRUE
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 22: Dereference of null pointer (loaded from variable 'p')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 46: null
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 58: null
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 81: stack memory associated
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 93: Passed-by-value struct argument contains uninitialized data
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 101: TRUE
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 117: too few arguments
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 117: Function taking 1 argument is called with fewer (0)
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Analysis/inline.c Line 114: 'knr_one_argument' declared here
# | 11 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.C/C11/n1330.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/22/include -nostdsysteminc -verify -Wgnu-folding-constant /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/C11/n1330.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/22/include -nostdsysteminc -verify -Wgnu-folding-constant /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/C11/n1330.c
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/C11/n1330.c Line 67: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.C/drs/dr0xx.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/22/include -nostdsysteminc -std=c89 -fsyntax-only -verify=expected,c89only,c17andearlier -pedantic -Wno-declaration-after-statement -Wno-c11-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr0xx.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/22/include -nostdsysteminc -std=c89 -fsyntax-only -verify=expected,c89only,c17andearlier -pedantic -Wno-declaration-after-statement -Wno-c11-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr0xx.c
# .---command stderr------------
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr0xx.c Line 247 'expected-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr0xx.c Line 253 'expected-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr0xx.c Line 407 'expected-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | 3 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.C/drs/dr3xx.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/22/include -nostdsysteminc -std=c89 -fsyntax-only -Wvla -verify=expected,c89only,c17andearlier -pedantic -Wno-c11-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr3xx.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/22/include -nostdsysteminc -std=c89 -fsyntax-only -Wvla -verify=expected,c89only,c17andearlier -pedantic -Wno-c11-extensions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr3xx.c
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr3xx.c Line 115: incompatible function pointer types initializing 'void (*)(int, int, int)' with an expression of type 'void (int)'
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/C/drs/dr3xx.c Line 114 'expected-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CodeGen/2009-06-01-addrofknr.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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/2009-06-01-addrofknr.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/2009-06-01-addrofknr.c.tmp -emit-llvm -verify -std=c89
# 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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/2009-06-01-addrofknr.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/2009-06-01-addrofknr.c.tmp -emit-llvm -verify -std=c89
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/2009-06-01-addrofknr.c Line 8: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CodeGen/ptrauth-function-type-discriminator.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/22/include -nostdsysteminc -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics    -disable-llvm-passes -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c       -o- | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK,CHECKC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.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/22/include -nostdsysteminc -fptrauth-function-pointer-type-discrimination -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -disable-llvm-passes -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c -o-
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c:107:4: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
# |   107 |   p(0);
# |       |    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c:117:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype]
# |   117 |   void redecl();
# |       |        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c:119:8: note: conflicting prototype is here
# |   119 |   void redecl(int);
# |       |        ^
# | 2 warnings generated.
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK,CHECKC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c:110:13: error: CHECKC: expected string not found in input
# |  // CHECKC: store ptr ptrauth (ptr @knr, i32 0, i64 18983), ptr [[P]]
# |             ^
# | <stdin>:70:17: note: scanning from here
# |  %p = alloca ptr, align 8
# |                 ^
# | <stdin>:70:17: note: with "P" equal to "%p"
# |  %p = alloca ptr, align 8
# |                 ^
# | <stdin>:71:41: note: possible intended match here
# |  %0 = call i64 @llvm.ptrauth.resign(i64 ptrtoint (ptr ptrauth (ptr @knr, i32 0, i64 2712) to i64), i32 0, i64 2712, i32 0, i64 18983)
# |                                         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c:139:13: error: CHECKC: expected string not found in input
# |  // CHECKC: store ptr ptrauth (ptr @knr2, i32 0, i64 18983)
# |             ^
# | <stdin>:107:29: note: scanning from here
# | define void @test_redecl_knr() #1 {
# |                             ^
# | <stdin>:116:2: note: possible intended match here
# |  store ptr ptrauth (ptr @knr2, i32 0, i64 2712), ptr %p2, align 8
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/ptrauth-function-type-discriminator.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             65: } 
# |             66:  
# |             67: ; Function Attrs: noinline nounwind optnone 
# |             68: define void @test_knr() #1 { 
# |             69: entry: 
# |             70:  %p = alloca ptr, align 8 
# | check:110'0                     X~~~~~~~~~ error: no match found
# | check:110'1                                with "P" equal to "%p"
# |             71:  %0 = call i64 @llvm.ptrauth.resign(i64 ptrtoint (ptr ptrauth (ptr @knr, i32 0, i64 2712) to i64), i32 0, i64 2712, i32 0, i64 18983) 
# | check:110'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:110'2                                             ?                                                                                              possible intended match
# |             72:  %1 = inttoptr i64 %0 to ptr 
# | check:110'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             73:  store ptr %1, ptr %p, align 8 
# | check:110'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             74:  %2 = load ptr, ptr %p, align 8 
# | check:110'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             75:  call void %2(i32 noundef 0) [ "ptrauth"(i32 0, i64 18983) ] 
# | check:110'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             76:  ret void 
# | check:110'0     ~~~~~~~~~~
# |              .
# |              .
# |              .
# |            102:  store i32 %param, ptr %param.addr, align 4 
# |            103:  ret void 
# |            104: } 
# |            105:  
# |            106: ; Function Attrs: noinline nounwind optnone 
# |            107: define void @test_redecl_knr() #1 { 
# | check:139'0                                 X~~~~~~~ error: no match found
# |            108: entry: 
# | check:139'0     ~~~~~~~
# |            109:  %p = alloca ptr, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            110:  %p2 = alloca ptr, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            111:  %0 = call i64 @llvm.ptrauth.resign(i64 ptrtoint (ptr ptrauth (ptr @knr2, i32 0, i64 2712) to i64), i32 0, i64 2712, i32 0, i64 18983) 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            112:  %1 = inttoptr i64 %0 to ptr 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            113:  store ptr %1, ptr %p, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            114:  %2 = load ptr, ptr %p, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            115:  call void %2() [ "ptrauth"(i32 0, i64 18983) ] 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            116:  store ptr ptrauth (ptr @knr2, i32 0, i64 2712), ptr %p2, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:139'1      ?                                                                 possible intended match
# |            117:  %3 = load ptr, ptr %p2, align 8 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            118:  call void %3(i32 noundef 0) [ "ptrauth"(i32 0, i64 2712) ] 
# | check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            119:  ret void 
# | check:139'0     ~~~~~~~~~~
# |            120: } 
# | check:139'0     ~~
# |            121:  
# | check:139'0     ~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Parser/c2x-attribute-keywords.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
sed -e "s at ATTR_USE@__arm_streaming at g" -e "s at ATTR_NAME@__arm_streaming at g" /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/c2x-attribute-keywords.c > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp
# executed command: sed -e s at ATTR_USE@__arm_streaming at g -e s at ATTR_NAME@__arm_streaming at g /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/c2x-attribute-keywords.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/22/include -nostdsysteminc -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify=expected,notc2x -Wno-strict-prototypes /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp
# 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/22/include -nostdsysteminc -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify=expected,notc2x -Wno-strict-prototypes /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/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/22/include -nostdsysteminc -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify=expected,c2x /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp
# 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/22/include -nostdsysteminc -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify=expected,c2x /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp
# .---command stderr------------
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp Line 61 'c2x-warning': deprecated
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Parser/Output/c2x-attribute-keywords.c.tmp Line 70 'c2x-warning': deprecated
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Parser/declarators.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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c -fsyntax-only -verify -pedantic -std=c99
# 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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c -fsyntax-only -verify -pedantic -std=c99
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c Line 30: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c Line 34: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c Line 98: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c Line 100: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Parser/declarators.c Line 102: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | 5 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/arg-duplicate.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/22/include -nostdsysteminc -fsyntax-only -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c -std=c99
# 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/22/include -nostdsysteminc -fsyntax-only -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c -std=c99
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c Line 13: too many arguments to function call, expected 2, have 5
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c Line 3: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c Line 13: too many arguments
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/arg-duplicate.c Line 3: 'f3' declared here
# | 4 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/function-redecl.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/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fsyntax-only -Wno-strict-prototypes -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/function-redecl.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/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fsyntax-only -Wno-strict-prototypes -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/function-redecl.c
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/function-redecl.c Line 100: conflicting types for 'isroot'
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/function-redecl.c Line 101: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/knr-def-call.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/22/include -nostdsysteminc -triple i386-pc-unknown -Wconversion -Wliteral-conversion -fsyntax-only -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.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/22/include -nostdsysteminc -triple i386-pc-unknown -Wconversion -Wliteral-conversion -fsyntax-only -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 6: too few arguments to function call, expected 4, have 1
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 11: too many arguments to function call, expected 2, have 3
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 15: conflicting types for 'f2'
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 47: conflicting types for 'func'
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 4: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 6: too few arguments
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 9: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 11: too many arguments
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 15: promoted type 'double' of K&R function parameter is not compatible with the parameter type 'float' declared in a previous prototype
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 15: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 28: promoted type 'char *' of K&R function parameter is not compatible with the parameter type 'const char *' declared in a previous prototype
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 35: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 47: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 48: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'short' declared in a previous prototype
# | error: 'expected-warning' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 19: pointer type mismatch ('void (*)(int, int, int, int)' and 'void (*)(int, int)')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 27: incompatible redeclaration of library function 'rindex'
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 4: 'f0' declared here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 9: 'f1' declared here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-def-call.c Line 22: 'rindex' is a builtin with type 'char *(const char *, int)'
# | 19 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/knr-variadic-def.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/22/include -nostdsysteminc -fsyntax-only -verify -pedantic /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c -std=c99
# 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/22/include -nostdsysteminc -fsyntax-only -verify -pedantic /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c -std=c99
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c Line 8: conflicting types for 'test'
# |   Line 15: 'va_start' used in function with fixed args
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c Line 8: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c Line 24: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/knr-variadic-def.c Line 6: previous declaration is here
# | 5 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/merge-decls.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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/merge-decls.c -verify -fsyntax-only -Wno-strict-prototypes
# 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/22/include -nostdsysteminc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/merge-decls.c -verify -fsyntax-only -Wno-strict-prototypes
# .---command stderr------------
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/merge-decls.c Line 80: passing argument to parameter 'a' here
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/warn-deprecated-non-prototype.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/22/include -nostdsysteminc -fsyntax-only -verify=both,expected /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.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/22/include -nostdsysteminc -fsyntax-only -verify=both,expected /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 56: conflicting types for 'test'
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 106: too many arguments to function call, expected 2, have 3
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 28 'both-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 30 'both-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 33 'both-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 56 'both-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 106 'both-warning': too many arguments in call to 'func'
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 113 'both-warning': a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | error: diagnostics with 'note' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 28: conflicting prototype is here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 55: previous declaration is here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-deprecated-non-prototype.c Line 28: 'func' declared here
# | 11 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/warn-strict-prototypes.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/22/include -nostdsysteminc -triple i386-pc-unknown -fsyntax-only -Wstrict-prototypes -Wno-implicit-function-declaration -Wno-error=implicit-int -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.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/22/include -nostdsysteminc -triple i386-pc-unknown -fsyntax-only -Wstrict-prototypes -Wno-implicit-function-declaration -Wno-error=implicit-int -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c Line 51: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c Line 62: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c Line 66: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c Line 69: a function definition without a prototype is deprecated in all versions of C and is not supported in C23
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-strict-prototypes.c Line 62: conflicting prototype is here
# | 5 errors generated.
# `-----------------------------
# 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/174092


More information about the cfe-commits mailing list