mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 10:54:07 +08:00
Add guality testcase for RTL alias analysis fix
gcc/testsuite/ * gcc.dg/guality/param-6.c: New test.
This commit is contained in:
parent
8d7a55b7f4
commit
50ebb5e611
20
gcc/testsuite/gcc.dg/guality/param-6.c
Normal file
20
gcc/testsuite/gcc.dg/guality/param-6.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
|
||||
/* { dg-options "-g" } */
|
||||
|
||||
void __attribute__((noipa)) bar (void *p)
|
||||
{}
|
||||
|
||||
void __attribute__((noipa)) foo (int i)
|
||||
{
|
||||
void *p = __builtin_alloca (i);
|
||||
|
||||
asm volatile ("" : : : "ebx");
|
||||
|
||||
bar (p); /* { dg-final { gdb-test . "i" "5" } } */
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
foo (5);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user