2024-04-23 14:14:02 +07:00
|
|
|
// Test without serialization:
|
2024-05-04 23:08:11 -07:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux -ast-dump %s \
|
2024-04-23 14:14:02 +07:00
|
|
|
// RUN: | FileCheck --strict-whitespace %s
|
|
|
|
|
|
|
|
// Test with serialization:
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -x objective-c -triple x86_64-pc-linux -include-pch %t -ast-dump-all /dev/null \
|
|
|
|
// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
|
|
|
|
// RUN: | FileCheck --strict-whitespace %s
|
|
|
|
|
|
|
|
|
|
|
|
@interface Adder
|
|
|
|
- (float) sum: (float)x with: (float)y __attribute((optnone));
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma float_control(precise, off)
|
|
|
|
|
|
|
|
@implementation Adder
|
|
|
|
- (float) sum: (float)x with: (float)y __attribute((optnone)) {
|
|
|
|
return x + y;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
// CHECK-LABEL: ObjCImplementationDecl {{.*}} Adder
|
|
|
|
// CHECK: ObjCMethodDecl {{.*}} - sum:with: 'float'
|
2024-05-06 14:30:54 +07:00
|
|
|
// CHECK: CompoundStmt {{.*}} FPContractMode=1 MathErrno=1
|
2024-04-23 14:14:02 +07:00
|
|
|
// CHECK-NEXT: ReturnStmt
|
2024-05-06 14:30:54 +07:00
|
|
|
// CHECK-NEXT: BinaryOperator {{.*}} 'float' '+' FPContractMode=1 MathErrno=1
|