brintos

brintos / llvm-project-archived public Read only

0
0
Text · 414 B · acf2c31 Raw
13 lines · cpp
1// RUN: %clang_cc1 -triple i686-linux-gnu -emit-llvm %s -o - | FileCheck %s2// https://github.com/llvm/llvm-project/issues/548453 4void *operator new(unsigned int, void *);5 6void test(double *d) {7  // This store used to have an alignment of 8, which was incorrect as8  // the i386 psABI only guarantees a 4-byte alignment for doubles.9 10  // CHECK: store double 0.000000e+00, {{.*}}, align 411  new (d) double(0);12}13