summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/member-location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/member-location.cpp')
-rw-r--r--test/SemaCXX/member-location.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/SemaCXX/member-location.cpp b/test/SemaCXX/member-location.cpp
index c3099d2..6f7e1f5 100644
--- a/test/SemaCXX/member-location.cpp
+++ b/test/SemaCXX/member-location.cpp
@@ -1,5 +1,8 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR4103: Make sure we have a location for the error
-class A { float a(int *); int b(); };
+class A {
+ float a(int *); // expected-note{{passing argument to parameter here}}
+ int b();
+};
int A::b() { return a(a((int*)0)); } // expected-error {{cannot initialize a parameter of type 'int *' with an rvalue of type 'float'}}
OpenPOWER on IntegriCloud