testsuite: Add dg-require-effective-target scheduling for some tests that set -fsched...
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / pr77549.C
blobaf7c630197a5b609b08191c4087088602ef1af64
1 // PR c++/77549
2 // { dg-do compile }
4 struct A
5
6   static int x;
7 };
9 void
10 f1 ()
11
12   using ::A;
13   x;                    // { dg-error "'x' was not declared in this scope" }
16 namespace N
18   int bar;
21 void
22 f2 ()
24   using N::bar;
25   baz++;                // { dg-error "'baz' was not declared in this scope; did you mean 'bar'\\?" }
28 int
29 bar ()
31   return 0;
34 namespace M
36   int
37   bar ()
38   {
39     return 0;
40   }
43 void
44 f3 ()
46   using M::bar;
47   baz ();               // { dg-error "'baz' was not declared in this scope; did you mean 'bar'\\?" }
50 namespace O
52   int
53   foo ()
54   {
55     return 0;
56   }
59 namespace P
61   int
62   bar ()
63   {
64     return 0;
65   }
68 void
69 f4 ()
71   using O::foo;
72   using P::bar;
73   fooo ();              // { dg-error "'fooo' was not declared in this scope; did you mean 'foo'\\?" }
74   baz ();               // { dg-error "'baz' was not declared in this scope; did you mean 'bar'\\?" }