[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 05:41:58 PST 2025
================
@@ -0,0 +1,42 @@
+// RUN: %clang_cc1 -std=c++03 -verify=expected,cxx11,cxx03 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++11 -verify=expected,cxx11 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++2c -verify=expected -fsyntax-only %s
+
+
+class A trivially_relocatable_if_eligible {};
+// cxx11-warning at -1 {{'trivially_relocatable_if_eligible' keyword is a C++2c extension}}
----------------
Fznamznon wrote:
I'm just curious, why don't we say and test C++26 instead of C++2c?
https://github.com/llvm/llvm-project/pull/127636
More information about the cfe-commits
mailing list