3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Nov 1999 <nathan@acm.org>
5 // Test our restrict object pointer extension
9 void f1() __restrict__;
10 void g1(int *__restrict__);
11 void f2() __restrict__;
12 void g2(int *__restrict__);
19 void A::f1 () __restrict__ {}
20 void A::g1 (int *__restrict__) {}
25 void A::f3 () __restrict__ {}
26 void A::g3 (int *__restrict__) {}
31 template <class T> struct X
33 void f1() __restrict__;
34 void g1(int *__restrict__);
35 void f2() __restrict__;
36 void g2(int *__restrict__);
43 template <class T> void X<T>::f1 () __restrict__ {}
44 template <class T> void X<T>::g1 (int *__restrict__) {}
45 template <class T> void X<T>::f2 () {}
46 template <class T> void X<T>::g2 (int *) {}
47 template <class T> void X<T>::f3 () __restrict__ {}
48 template <class T> void X<T>::g3 (int *__restrict__) {}
49 template <class T> void X<T>::f4 () {}
50 template <class T> void X<T>::g4 (int *) {}