Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.mike/net19.C

raw
1 // { dg-do assemble }
2 // Test to make sure &<incomplete record type> works in c++
3
4 struct FILE {
5 int _flags;
6 };
7
8 extern struct _fake_filebuf __std_filebuf_2;
9
10 class Value {
11 int width;
12 public:
13 Value();
14 friend Value operator&( __const Value&, __const Value&);
15 };
16
17 FILE* Foo ()
18 {
19 return ((FILE*)&__std_filebuf_2);
20 }