diff options
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c/fail32-frag.c')
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/fail32-frag.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/fail32-frag.c b/libmudflap/testsuite/libmudflap.c/fail32-frag.c new file mode 100644 index 000000000..2a38237b6 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c/fail32-frag.c @@ -0,0 +1,16 @@ +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 *-*-* } } */ |