Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/vrp15.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ extern void abort (void) __attribute__ ((__noreturn__)); union tree_node; typedef union tree_node *tree; enum tree_code { ERROR_MARK, COND_EXPR = 42, }; extern const unsigned char tree_code_length[]; struct tree_common { enum tree_code code:8; }; union tree_node { struct tree_common common; }; void blah (tree t) { if (t->common.code != COND_EXPR) abort (); if (1 >= tree_code_length[t->common.code]) abort (); } /* { dg-final { scan-tree-dump-times "tree_code_length.42." 1 "vrp1" } } */