Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / FixIt / member-mismatch.cpp
blob2d2aec2e176b2bb74600a6a55a40fb207eb6d547
1 // RUN: %clang_cc1 -verify %s
2 // RUN: not %clang_cc1 -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
4 class Foo {
5 int get() const; // expected-note {{because it is const qualified}}
6 void set(int); // expected-note {{because it is not const qualified}}
7 };
9 // CHECK: fix-it:"{{.*}}":{[[@LINE+1]]:15-[[@LINE+1]]:15}:" const"
10 int Foo::get() {} // expected-error {{does not match any declaration}}
11 // CHECK: fix-it:"{{.*}}":{[[@LINE+1]]:20-[[@LINE+1]]:26}:""
12 void Foo::set(int) const {} // expected-error {{does not match any declaration}}