1 // RUN: %clang_cc1 -emit-llvm -o - -triple x86_64-apple-darwin %s | FileCheck %s
5 m_floatValue
= static_cast<float>(v
);
8 bool operator==(const Length
& o
) const {
9 return getFloatValue() == o
.getFloatValue();
11 bool operator!=(const Length
& o
) const { return !(*this == o
); }
13 float getFloatValue() const {
21 static Length
inchLength(double inch
);
22 static bool getPageSizeFromName(const Length
&A
) {
23 static const Length legalWidth
= inchLength(8.5);
24 if (A
!= legalWidth
) return true;
29 // CHECK: @_ZZN3Foo19getPageSizeFromNameERK6LengthE10legalWidth = linkonce_odr global %struct.Length zeroinitializer, align 4
30 // CHECK: store float %{{.*}}, ptr @_ZZN3Foo19getPageSizeFromNameERK6LengthE10legalWidth, align 4
34 return f
.getPageSizeFromName(b
);