Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-6.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test normalization of ARRAY_REF expressions to MEM_REFs in dom. */ /* { dg-do compile } */ /* { dg-options "-O1 -fno-tree-fre -fdump-tree-dom2" } */ int main (int argc, char **argv) { union { int a[4]; int b[2]; } u; u.a[0] = 1; u.a[1] = 42; u.a[2] = 3; u.a[3] = 4; __builtin_printf ("%d\n", u.a[argc]); return u.b[1]; } /* { dg-final { scan-tree-dump-times "return 42;" 1 "dom2" } } */