1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
16 ++c
; // expected-error {{use of overloaded operator '++' is ambiguous}}\
17 // expected-note {{built-in candidate operator++(int &)}} \
18 // expected-note {{built-in candidate operator++(long &)}} \
19 // expected-note {{built-in candidate operator++(long *&)}} \
20 // expected-note {{built-in candidate operator++(int *&)}}
23 struct A1
{ operator volatile int&(); };
25 struct B1
{ operator volatile long&(); };
27 struct C1
: B1
, A1
{ };
30 ++c
; // expected-error {{use of overloaded operator '++' is ambiguous}} \
31 // expected-note {{built-in candidate operator++(volatile int &)}} \
32 // expected-note {{built-in candidate operator++(volatile long &)}}