testsuite: Add testcase for already fixed PR [PR119226]
This was fixed in PR119219 r15-7981 commit. 2025-03-12 Jakub Jelinek <jakub@redhat.com> PR middle-end/119226 * gcc.c-torture/compile/pr119226.c: New test.
This commit is contained in:
parent
e406994e31
commit
bb83e83cad
1 changed files with 12 additions and 0 deletions
12
gcc/testsuite/gcc.c-torture/compile/pr119226.c
Normal file
12
gcc/testsuite/gcc.c-torture/compile/pr119226.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* PR middle-end/119226 */
|
||||
|
||||
char a[64];
|
||||
void bar (void);
|
||||
|
||||
void
|
||||
foo (int x)
|
||||
{
|
||||
char *b = a + __builtin_strcspn (a, x ? "" : "ab");
|
||||
if (b[0])
|
||||
bar ();
|
||||
}
|
Loading…
Add table
Reference in a new issue