OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp74.C
1 // { dg-do assemble  }
2
3 template <class T>
4 class S
5 {
6 protected:
7   template <class U>
8   void f(U); // { dg-error "" } is protected
9
10 private:
11   template <class U>
12   void g(U); // { dg-error "" } is private
13 };
14
15
16 void f()
17 {
18   S<double> s;
19   s.f(3); // { dg-error "" } within this context
20   s.g(2.0); // { dg-error "" } within this context
21 }