2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-04-30 01:56:47 +08:00
|
|
|
// PR4103: Make sure we have a location for the error
|
2010-04-22 08:20:18 +08:00
|
|
|
class A {
|
|
|
|
float a(int *); // expected-note{{passing argument to parameter here}}
|
|
|
|
int b();
|
|
|
|
};
|
2009-12-22 15:24:36 +08:00
|
|
|
int A::b() { return a(a((int*)0)); } // expected-error {{cannot initialize a parameter of type 'int *' with an rvalue of type 'float'}}
|
2009-04-30 01:56:47 +08:00
|
|
|
|