summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/cse1.C
blob: be1ad5a1143d476e1e5c8a13e293a1de658970ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR optimization/6759
// This testcase ICEd on SPARC because folded REG_EQUAL
// note was note stored back and fold_rtx left invalid rtx
// in it.
// { dg-do compile }
// { dg-options "-O2" }

struct A
{
  long long a;
  A (unsigned short d) : a (d) {}
} x (65535);