diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-01-10 10:36:50 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-01-10 10:41:21 +0800 |
commit | 9cb1298dcc85c357eb97ed0bdc3c82c5d011f6f6 (patch) | |
tree | 9b3c59aa1d5f90184ddfda9d55ad0d599a5725f1 | |
parent | 9852941f0138f5e80a0da57ef57b4baa22f2fa71 (diff) | |
download | llvm-9cb1298dcc85c357eb97ed0bdc3c82c5d011f6f6.zip llvm-9cb1298dcc85c357eb97ed0bdc3c82c5d011f6f6.tar.gz llvm-9cb1298dcc85c357eb97ed0bdc3c82c5d011f6f6.tar.bz2 |
[NFC] Fix a test faliing in AIX
See https://reviews.llvm.org/D140867.
The signature of the constructor/destrucor of the global variables is
different in different targets. And the CHECKs in the test is
unavailable in other targets (e.g., AIX). So the patch tries to avoid
the test failure by requiring the target type.
-rw-r--r-- | clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm b/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm index 6080786..64d0b60 100644 --- a/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm +++ b/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm @@ -1,4 +1,11 @@ // https://github.com/llvm/llvm-project/issues/59765 +// +// FIXME: Since the signature of the constructors/destructors is +// different in different targets. The current CHECK can't work +// well for other targets like AIX. So here is the REQUIRES. +// It would be better to add the corresponding test for other test. +// REQUIRES: x86-registered-target,aarch64-registered-target +// // RUN: rm -rf %t // RUN: mkdir %t // RUN: split-file %s %t |