1 // RUN: %clang_cc1 -verify -std=c++2c %s
3 // RUN: not %clang_cc1 -x c++ -std=c++2c -fixit %t
4 // RUN: %clang_cc1 -x c++ -std=c++2c %t
5 // RUN: not %clang_cc1 -std=c++2c -x c++ -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
9 (void)&f
; // expected-error {{must explicitly qualify name of member function when taking its address}}
10 // CHECK: fix-it:{{.*}}:{9:16-9:16}:"S::"
16 g(); // expected-error {{call to non-static member function without an object argument}}
17 // CHECK: fix-it:{{.*}}:{16:9-16:9}:"foo."
19 h(); // expected-error {{call to explicit member function without an object argument}}
20 // CHECK: fix-it:{{.*}}:{19:9-19:9}:"foo."
24 var
; // expected-error {{invalid use of member 'var' in explicit object member function}}
25 // CHECK: fix-it:{{.*}}:{24:9-24:9}:"foo."