* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp69.C
blob9b47d441ed73f84efc38ae3d0c3cc0daaa6eea28
1 // { dg-do run  }
2 struct S 
4   template <class T>
5   void f(T (&i)[7])
6     {}
8   void g()
9     {
10       int i[] = {1, 2, 3, 4, 5, 6, 7};
11       f(i);
12       int j[7];
13       f(j);
14     }
17 struct foo {
18   template <typename T, int N>
19   static T* array_end(T(&array)[N]) { return &array[N]; }
22 struct X
24   template <class T1>
25   void f(const T1&) {}
28 int main(int ac, char* av[]) {
29   S s;
30   s.g();
31   int i[] = {1,2,3,4,5};
32   int* e = foo::array_end(i);
33   X x;
34   x.f("hello");