summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/ptrmem10.C
blob: f6f97d9c021e6c9d75908e7216a3bdc1c8fd7896 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do run  }
// Test that we properly convert a constant ptm to bool.

class A { };

int main()
{
  int A::*const p = 0;
  if (p)
    return 1;
}