Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Parser / gcc-__final-compatibility.cpp
blobddd14ba79ef4ff9edf3648b18d174af7aa20af09
1 // RUN: %clang_cc1 -std=c++98 -fgnu-keywords -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -std=c++11 -fgnu-keywords -fsyntax-only -verify %s
4 struct B {
5 virtual void g();
6 };
7 struct D __final : B { // expected-warning {{__final is a GNU extension, consider using C++11 final}}
8 virtual void g() __final; // expected-warning {{__final is a GNU extension, consider using C++11 final}}
9 };