[PATCH] D80055: Diagnose union tail padding
JF Bastien via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 18:29:17 PDT 2020
jfb marked an inline comment as done.
jfb added inline comments.
================
Comment at: clang/test/CodeGen/union-tail-padding.c:9
+// RUN: %clang_cc1 -Wunion-tail-padding -xc++ -std=c++17 -triple aarch64-apple-darwin %s -emit-llvm -o /dev/null -verify
+// RUN: %clang_cc1 -Wunion-tail-padding -xc++ -std=c++2a -triple aarch64-apple-darwin %s -emit-llvm -o /dev/null -verify
+
----------------
This test, while it might be surprising, is testing the current behavior of clang. I haven't validated that it's correct for each standard.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80055/new/
https://reviews.llvm.org/D80055
More information about the cfe-commits
mailing list