summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/constexpr_partial_array.cpp
blob: 998d75edbb886d4ac17409d6be9f84bef23945f9 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.22.27905 -emit-llvm -o - -fopenmp %s | FileCheck %s
// expected-no-diagnostics

// CHECK: [[C_VAR_VAL:@.+]] = private unnamed_addr constant <{ i8, [26 x i8] }> <{ i8 1, [26 x i8] zeroinitializer }>,
char a;
bool b() {
  static constexpr bool c[27]{1};
  // CHECK: getelementptr inbounds [27 x i8], [27 x i8]* bitcast (<{ i8, [26 x i8] }>* [[C_VAR_VAL]] to [27 x i8]*),
  return c[a];
}
OpenPOWER on IntegriCloud