|
1 |
| -// RUN: %clang_cc1 -std=c++2b -verify -fsyntax-only %s |
| 1 | +// RUN: %clang_cc1 -std=c++2c -verify=expected -fsyntax-only %s |
| 2 | +// RUN: %clang_cc1 -std=c++11 -verify=expected,cxx11 -fsyntax-only %s |
| 3 | + |
2 | 4 |
|
3 | 5 |
|
4 | 6 | class A trivially_relocatable_if_eligible {};
|
| 7 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
5 | 8 | class E final trivially_relocatable_if_eligible {};
|
| 9 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
6 | 10 | class G trivially_relocatable_if_eligible final{};
|
| 11 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
7 | 12 | class I trivially_relocatable_if_eligible trivially_relocatable_if_eligible final {}; // expected-error {{class already marked 'trivially_relocatable_if_eligible'}}
|
| 13 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
8 | 14 | class trivially_relocatable_if_eligible trivially_relocatable_if_eligible {};
|
| 15 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
| 16 | + |
| 17 | +class J replaceable_if_eligible{}; |
| 18 | +// cxx11-warning@-1 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 19 | +class K replaceable_if_eligible replaceable_if_eligible {}; // expected-error {{class already marked 'replaceable_if_eligible'}} |
| 20 | +// cxx11-warning@-1 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 21 | +class replaceable_if_eligible replaceable_if_eligible {}; |
| 22 | +// cxx11-warning@-1 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 23 | +class L replaceable_if_eligible trivially_relocatable_if_eligible final {}; |
| 24 | +// cxx11-warning@-1 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 25 | +// cxx11-warning@-2 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
| 26 | +class M replaceable_if_eligible final trivially_relocatable_if_eligible {}; |
| 27 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
| 28 | +// cxx11-warning@-2 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 29 | +class N final trivially_relocatable_if_eligible replaceable_if_eligible {}; |
| 30 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
| 31 | +// cxx11-warning@-2 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
| 32 | +class O trivially_relocatable_if_eligible replaceable_if_eligible final {}; |
| 33 | +// cxx11-warning@-1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}} |
| 34 | +// cxx11-warning@-2 {{'replaceable_if_eligible' keyword is a C++2c extension}} |
0 commit comments