brintos

brintos / llvm-project-archived public Read only

0
0
Text · 394 B · 70420f2 Raw
11 lines · cpp
1// RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.22.27905 -emit-llvm -o - -fopenmp %s | FileCheck %s2// expected-no-diagnostics3 4// CHECK: [[C_VAR_VAL:@.+]] = private unnamed_addr constant <{ i8, [26 x i8] }> <{ i8 1, [26 x i8] zeroinitializer }>,5char a;6bool b() {7  static constexpr bool c[27]{1};8  // CHECK: getelementptr inbounds [27 x i8], ptr [[C_VAR_VAL]],9  return c[a];10}11