view gcc/testsuite/g++.dg/other/ptrmem3.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

// Bug: The double cast had an TREE_INT_CST_HIGH of 0, while the single
// cast had -1, so the comparison failed.

// { dg-do run }

struct A { };

typedef int A::* aip;
typedef long A::* alp;

int main()
{
  return ((aip)(alp)0 != (aip)0);
}