OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr30375.c] - Rev 298

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dse" } */
 
typedef struct _s {
    int a;
    int b;
    int c;
    int d;
} s;
 
extern void g(s*);
extern void f(void);
 
void test_signed_msg_encoding(void)
{
    s signInfo = { sizeof(signInfo), 0 };
 
    signInfo.b = 1;
    signInfo.c = 0;
    g(&signInfo);
    signInfo.d = 0;
    f();
}
 
/* { dg-final { scan-tree-dump-times "signInfo = {}" 1 "dse1" } } */
/* { dg-final { cleanup-tree-dump "dse*" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.