Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr92301.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-options "-O3" } */ unsigned int m; #define N 128 unsigned int a[N]; unsigned int __attribute__((noipa)) df_count_refs (_Bool include_defs) { int size = 0; for (unsigned int regno = 0; regno < m; regno++) if (include_defs) size += a[regno]; return size; } int main(int argc, char **argv) { for (unsigned i = 0; i < N; i++) a[i] = i; if (argc == 1) m = 17; unsigned int r = df_count_refs(1); __builtin_printf ("r: %d\n", r); if (r != 136) __builtin_abort (); return 0; }