1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-store region -verify %s
2 // expected-no-diagnostics
4 // Intra-procedural C++ tests.
6 // Test relaxing function call arguments invalidation to be aware of const
7 // arguments. radar://10595327
8 struct InvalidateArgs
{
9 void ttt(const int &nptr
);
10 virtual void vttt(const int *nptr
);
12 struct ChildOfInvalidateArgs
: public InvalidateArgs
{
13 virtual void vttt(const int *nptr
);
15 void declarationFun(int x
) {
24 void virtualFun(int x
) {
25 ChildOfInvalidateArgs t
;
26 InvalidateArgs
*pt
= &t
;