re PR tree-optimization/32328 (-fstrict-aliasing causes skipped code)
2007-08-23 Richard Guenther <rguenther@suse.de> PR tree-optimization/32328 * testsuite/gcc.dg/pr32328.c: New testcase. From-SVN: r127736
This commit is contained in:
parent
35f3782f4a
commit
f3b45ab712
@ -1,3 +1,8 @@
|
||||
2007-08-23 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/32328
|
||||
* testsuite/gcc.dg/pr32328.c: New testcase.
|
||||
|
||||
2007-08-23 Rask Ingemann Lambertsen <rask@sygehus.dk>
|
||||
|
||||
* gcc.c-torture/execute/simd-4.x: Only run when stdint.h types are
|
||||
|
17
gcc/testsuite/gcc.dg/pr32328.c
Normal file
17
gcc/testsuite/gcc.dg/pr32328.c
Normal file
@ -0,0 +1,17 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
||||
|
||||
struct barstruct { char const* some_string; };
|
||||
|
||||
void changethepointer(struct barstruct**);
|
||||
|
||||
void baz()
|
||||
{
|
||||
struct barstruct bar1;
|
||||
struct barstruct* barptr = &bar1;
|
||||
changethepointer(&barptr);
|
||||
barptr->some_string = "Everything OK";
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump "Everything OK" "optimized" } } */
|
||||
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
Loading…
Reference in New Issue
Block a user