Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / DynArrayInit.cpp
blobc7bc60dc76a8e24f0f187f3ffa3de8ce12fb5219
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -O3 -emit-llvm -o - %s | FileCheck %s
2 // PR7490
4 // CHECK-LABEL: define{{.*}} signext i8 @_Z2f0v
5 // CHECK: ret i8 0
6 // CHECK: }
7 inline void* operator new[](unsigned long, void* __p) { return __p; }
8 static void f0_a(char *a) {
9 new (a) char[4]();
11 char f0() {
12 char a[4];
13 f0_a(a);
14 return a[0] + a[1] + a[2] + a[3];