mips.h (ISA_HAS_DSP, [...]): New macros.
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-alloca-1.c
blob735a22f3a7e48150353f6416523f449b38a68208
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-useless" } */
4 void *alloca (__SIZE_TYPE__);
5 void link_error ();
7 int main (int argc, char *argv[]) {
8 char *foo;
9 if ((foo = alloca(argc)) == 0)
10 link_error ();
11 return 0;
13 /* { dg-final { scan-tree-dump-times "link_error" 0 "useless" } } */
14 /* { dg-final { cleanup-tree-dump "useless" } } */