summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/ctor-dtor-privacy-1.C
blob: 3e84c092168591da201aeec47fac7c8eec8237e9 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-Wctor-dtor-privacy" }

struct C {                      // { dg-warning "" }
   static bool result;
private:
   static bool check();
};

bool C::result = check();