• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -O3 -emit-llvm -o - %s | FileCheck %s
2 // PR7490
3 
4 // CHECK-LABEL: define signext i8 @_Z2f0v
5 // CHECK: ret i8 0
6 // CHECK: }
operator new[](unsigned long,void * __p)7 inline void* operator new[](unsigned long, void* __p)  { return __p; }
f0_a(char * a)8 static void f0_a(char *a) {
9   new (a) char[4]();
10 }
f0()11 char f0() {
12   char a[4];
13   f0_a(a);
14   return a[0] + a[1] + a[2] + a[3];
15 }
16