aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr90773-1d.C
blob: bf9d8543c1b39c76c0319837e47bf7f5808d9032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do run }
// { dg-options "-O2" }
// { dg-additional-options "-march=native" { target { i?86-*-* x86_64-*-* } } }
// { dg-additional-sources "pr90773-1a.C" }

#include "pr90773-1.h"

void
foo (fixed_wide_int_storage x)
{
  for (int i = 0; i < x.len; i++)
    if (x.val[i] != i)
      __builtin_abort ();
}

int main ()
{
  return record_increment ();
}