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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [fold-alloca-1.c] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-useless" } */
3
 
4
void *alloca (__SIZE_TYPE__);
5
void link_error ();
6
 
7
int main (int argc, char *argv[]) {
8
        char *foo;
9
        if ((foo = alloca(argc)) == 0)
10
          link_error ();
11
        return 0;
12
}
13
/* { dg-final { scan-tree-dump-times "link_error" 0 "useless" } } */
14
/* { dg-final { cleanup-tree-dump "useless" } } */

powered by: WebSVN 2.1.0

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