Debian Codegraph @

gcc/testsuite/g++.dg/lookup/koenig1.C

raw
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Mar 2003 <[email protected]>
5
6 // PR 10026. We ICE'd
7
8 class X;
9
10 void foo() {
11 X x(1); // { dg-error "incomplete type" }
12 bar(x); // { dg-error "3:'bar' was not declared" }
13 }