Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx2a-init-statement.cpp
blob2d45c8554451dfb4b47319999cc16fe81dc84da6
1 // RUN: %clang_cc1 -std=c++2a -triple x86_64-apple-macosx10.7.0 -emit-llvm -o - %s -w | FileCheck %s
3 // CHECK: @__const._Z1fv.arr = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
5 void f() {
6 // CHECK: %[[ARR:.*]] = alloca [3 x i32], align 4
7 // CHECK: call void @llvm.memcpy{{.*}}({{.*}} @__const._Z1fv.arr
8 for (int arr[3] = {1, 2, 3}; int a : arr)