Skip to content

Commit e797794

Browse files
committed
[BoundsSafety] Unbreak AST/typedef-function-attrs-late-parsed-call.c test
The test broke because a new diagnostic from upstream started firing and was mixed in with the AST dump. The upstream diagnostic is from: ``` commit 576161c Author: Aaron Ballman <[email protected]> Date: Fri Apr 25 08:21:41 2025 -0400 [C] Warn on uninitialized const objects (llvm#137166) ``` The simplest solution is to surpress the new diagnostic. rdar://150458872
1 parent c343be7 commit e797794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/BoundsSafety/AST/typedef-function-attrs-late-parsed-call.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
// RUN: %clang_cc1 -fbounds-safety -ast-dump %s 2>&1 | FileCheck %s
3-
// RUN: %clang_cc1 -fbounds-safety -x objective-c -fbounds-attributes-objc-experimental -ast-dump %s 2>&1 | FileCheck %s
2+
// RUN: %clang_cc1 -fbounds-safety -Wno-default-const-init-unsafe -ast-dump %s 2>&1 | FileCheck %s
3+
// RUN: %clang_cc1 -fbounds-safety -x objective-c -Wno-default-const-init-unsafe -fbounds-attributes-objc-experimental -ast-dump %s 2>&1 | FileCheck %s
44

55
#include <ptrcheck.h>
66

0 commit comments

Comments
 (0)