[clang] fd55636 - [clang] Restores some -std=c++2b tests.
Mark de Wever via cfe-commits
cfe-commits at lists.llvm.org
Fri May 12 08:45:30 PDT 2023
Author: Mark de Wever
Date: 2023-05-12T17:44:59+02:00
New Revision: fd556368a1a85eda27c2490331646b2913f16527
URL: https://github.com/llvm/llvm-project/commit/fd556368a1a85eda27c2490331646b2913f16527
DIFF: https://github.com/llvm/llvm-project/commit/fd556368a1a85eda27c2490331646b2913f16527.diff
LOG: [clang] Restores some -std=c++2b tests.
These tests should have added -std=c++23 instead of replacing -std=c++2b
in D149553.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D150063
Added:
Modified:
clang/test/Preprocessor/init.c
Removed:
################################################################################
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index f4d4a5793b080..9d27f12b9861c 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -10,6 +10,7 @@
//
//
// RUN: %clang_cc1 -x c++ -fgnuc-version=4.2.1 -std=c++23 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix CXX2B %s
+// RUN: %clang_cc1 -x c++ -fgnuc-version=4.2.1 -std=c++2b -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix CXX2B %s
//
// CXX2B:#define __GNUG__ 4
// CXX2B:#define __GXX_EXPERIMENTAL_CXX0X__ 1
@@ -134,6 +135,7 @@
// FREESTANDING:#define __STDC_HOSTED__ 0
//
// RUN: %clang_cc1 -x c++ -fgnuc-version=4.2.1 -std=gnu++23 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix GXX2B %s
+// RUN: %clang_cc1 -x c++ -fgnuc-version=4.2.1 -std=gnu++2b -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix GXX2B %s
//
// GXX2B:#define __GNUG__ 4
// GXX2B:#define __GXX_WEAK__ 1
More information about the cfe-commits
mailing list