diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
| commit | bab175ec4b075c8076ba14c762900392533f6ee4 (patch) | |
| tree | 01f4f29419a2cb10abe13c1e63cd2a66068b0137 /test/Parser/gcc-__final-compatibility.cpp | |
| parent | 8b7a8012d223fac5d17d16a66bb39168a9a1dfc0 (diff) | |
Notes
Diffstat (limited to 'test/Parser/gcc-__final-compatibility.cpp')
| -rw-r--r-- | test/Parser/gcc-__final-compatibility.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/gcc-__final-compatibility.cpp b/test/Parser/gcc-__final-compatibility.cpp new file mode 100644 index 0000000000000..ddd14ba79ef4f --- /dev/null +++ b/test/Parser/gcc-__final-compatibility.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -std=c++98 -fgnu-keywords -fsyntax-only -verify %s +// RUN: %clang_cc1 -std=c++11 -fgnu-keywords -fsyntax-only -verify %s + +struct B { + virtual void g(); +}; +struct D __final : B { // expected-warning {{__final is a GNU extension, consider using C++11 final}} + virtual void g() __final; // expected-warning {{__final is a GNU extension, consider using C++11 final}} +}; |
