Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C

raw
1 // { dg-do assemble }
2 // { dg-skip-if "requires hosted libstdc++ for fstream" { ! hostedlib } }
3 // GROUPS passed error-messages
4 #include <fstream>
5 #include <iomanip>
6
7 // This error should not appear:
8 // bug.C: In method `test::test(const class test &)':
9 // bug.C:8: field `' not in immediate context
10
11 class test{
12 public:
13 int flags;
14 test() {}
15 };
16
17 int main()
18
19 {
20 return 0;
21 }