[NFC] Fix a test faliing in AIX
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 10 Jan 2023 02:36:50 +0000 (10:36 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 10 Jan 2023 02:41:21 +0000 (10:41 +0800)
commit9cb1298dcc85c357eb97ed0bdc3c82c5d011f6f6
tree9b3c59aa1d5f90184ddfda9d55ad0d599a5725f1
parent9852941f0138f5e80a0da57ef57b4baa22f2fa71
[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.
clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm