1 // Build with "cl.exe /Zi /GR- /GX- every-pointer.cpp /link /debug /nodefaultlib /incremental:no /entry:main"
8 void __cdecl
operator delete(void *,unsigned int) {}
9 void __cdecl
operator delete(void *,unsigned __int64
) {}
14 int func() { return 42; }
22 Foo __unaligned
*UFooP
= &F
;
23 Foo
* __restrict RFooP
= &F
;
25 const Foo
* CFooP
= &F
;
26 volatile Foo
* VFooP
= &F
;
27 const volatile Foo
* CVFooP
= &F
;
29 template<typename T
> void f(T t
) {}
31 int main(int argc
, char **argv
) {
35 f
<Foo __unaligned
*>(UFooP
);
36 f
<Foo
*__restrict
>(RFooP
);
39 f
<volatile Foo
*>(VFooP
);
40 f
<const volatile Foo
*>(CVFooP
);
43 f
<Foo
&&>(static_cast<Foo
&&>(F
));