1 // Compile with "cl /c /Zi /GR- TypeQualifiersTest.cpp"
2 // Link with "link TypeQualifiersTest.obj /debug /nodefaultlib /entry:main"
5 int * __restrict x_member
;
6 float * __restrict y_member
;
7 int* volatile __restrict m_volatile
;
11 int f(const volatile int* __restrict arg_crv
) {
16 void g(int& __restrict arg_ref
) {
22 int get() const { return 1;}
23 int set() __restrict
{ return 2; }
24 void help() volatile { return; }
30 int func(int x
) __restrict
{ return 1; }
35 const int* __restrict p_object
= &s
.a
;
37 volatile int Foo:: * __restrict p_data_member
= &Foo::a
;
39 int (Foo::* p_member_func
)(int) __restrict
= &Foo::func
;
42 typedef long* __restrict RestrictTypedef
;
43 RestrictTypedef RestrictVar
;
45 typedef volatile int* __restrict RankNArray
[10][100];