aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/hidden-class10.C
blob: f68196ff8a1da0dc18261796383f53e0d82a3c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2007 Free Software Foundation
// Contributed by Ollie Wild <aaw@google.com>
// { dg-do compile }

// Verify that a friend class is hidden even if it overrides a builtin
// function name.

class A {
  friend class abort;
  abort *b;	// { dg-error "no type|expected" }
};