[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / SystemZ / vec-abi-gnuattr-20.cpp
blob66c2ba23fede9f284d4e957494a0244aa6b0b72c
1 // RUN: %clang_cc1 -triple s390x-ibm-linux -emit-llvm -fzvector -o - %s 2>&1 \
2 // RUN: | FileCheck %s
3 //
4 // Test the emission of the "s390x-visible-vector-ABI" module flag.
6 // Globally visible C++ object with vector member.
8 typedef __attribute__((vector_size(16))) int v4i32;
10 class Base {
11 protected:
12 v4i32 v;
15 class C : public Base {
16 int i;
18 public:
19 C() {
20 i = 1;
21 v = {1, 2, 3, 4};
25 C Obj;
27 //CHECK: !llvm.module.flags = !{!0, !1}
28 //CHECK: !0 = !{i32 2, !"s390x-visible-vector-ABI", i32 1}