Skip to content
Snippets Groups Projects
Commit 5459a907 authored by Jakub Jelinek's avatar Jakub Jelinek
Browse files

testsuite: Add testcase for already fixed PR [PR107385]

This testcase has been fixed by the PR113921 fix, but unlike testcase
in there this one is not target specific.

2024-02-15  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/107385
	* gcc.dg/pr107385.c: New test.
parent 2b4efc5d
No related branches found
No related tags found
No related merge requests found
/* PR middle-end/107385 */
/* { dg-do run } */
/* { dg-options "-O2" } */
__attribute__((noipa)) int
foo (void)
{
int x;
asm goto ("": "=r" (x) : "0" (15) :: lab);
x = 6;
lab:
return x;
}
int
main ()
{
if (foo () != 6)
__builtin_abort ();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment