mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 23:24:36 +08:00
17 lines
261 B
C
17 lines
261 B
C
|
void foo (int k)
|
||
|
{
|
||
|
volatile int *b = & k;
|
||
|
b++;
|
||
|
*b = 5;
|
||
|
}
|
||
|
|
||
|
int main ()
|
||
|
{
|
||
|
foo (5);
|
||
|
return 0;
|
||
|
}
|
||
|
/* { dg-output "mudflap violation 1.*" } */
|
||
|
/* { dg-output "Nearby object.*" } */
|
||
|
/* { dg-output "mudflap object.*k" } */
|
||
|
/* { dg-do run { xfail *-*-* } } */
|