summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C
blob: 155910021b71aa2ecbcbb484dbe3291ad30afdb0 (plain)
1
2
3
4
5
6
7
// { dg-do assemble  }
// { dg-options "-Wctor-dtor-privacy" }
// GROUPS passed warnings
// there should be a warning about foo only defining private methods
class foo { // { dg-warning "private" }
  int bar();
};