Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/ptrmem10.C

raw
1 // { dg-do run }
2 // Test that we properly convert a constant ptm to bool.
3
4 class A { };
5
6 int main()
7 {
8 int A::*const p = 0;
9 if (p)
10 return 1;
11 }