summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/member-location.cpp
blob: cb53ae15123dd37714fbb4266539f30eb7071e2e (plain)
1
2
3
4
5
// RUN: clang-cc -fsyntax-only -verify %s
// PR4103: Make sure we have a location for the error
class A { float a(int *); int b(); };
int A::b() { return a(a((int*)0)); } // expected-error {{incompatible type}}

OpenPOWER on IntegriCloud