[clang] [clang] Add some CodeGen tests for CWG 2xx issues (PR #80823)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 08:52:24 PST 2024
================
@@ -6,28 +6,36 @@
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -disable-llvm-passes -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
// RUN: %clang_cc1 -std=c++2c %s -triple x86_64-linux-gnu -emit-llvm -disable-llvm-passes -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
+#if __cplusplus == 199711L
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wvariadic-macros"
+#define static_assert(...) __extension__ _Static_assert(__VA_ARGS__)
+#pragma clang diagnostic pop
+#endif
----------------
erichkeane wrote:
Wowzers, lot of work to make this happen, but thank you for doing it!
https://github.com/llvm/llvm-project/pull/80823
More information about the cfe-commits
mailing list