xref: /aosp_15_r20/external/clang/test/SemaCXX/member-location.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s
2*67e74705SXin Li // PR4103: Make sure we have a location for the error
3*67e74705SXin Li class A {
4*67e74705SXin Li   float a(int *); // expected-note{{passing argument to parameter here}}
5*67e74705SXin Li   int b();
6*67e74705SXin Li };
b()7*67e74705SXin Li int A::b() { return a(a((int*)0)); } // expected-error {{cannot initialize a parameter of type 'int *' with an rvalue of type 'float'}}
8*67e74705SXin Li 
9