Debian Codegraph @

clang/test/AST/ast-dump-fpfeatures.m

raw
1 // Test without serialization:
2 // RUN: %clang_cc1 -triple x86_64-pc-linux -ast-dump %s \
3 // RUN: | FileCheck --strict-whitespace %s
4
5 // Test with serialization:
6 // RUN: %clang_cc1 -triple x86_64-pc-linux -emit-pch -o %t %s
7 // RUN: %clang_cc1 -x objective-c -triple x86_64-pc-linux -include-pch %t -ast-dump-all /dev/null \
8 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
9 // RUN: | FileCheck --strict-whitespace %s
10
11
12 @interface Adder
13 - (float) sum: (float)x with: (float)y __attribute((optnone));
14 @end
15
16 #pragma float_control(precise, off)
17
18 @implementation Adder
19 - (float) sum: (float)x with: (float)y __attribute((optnone)) {
20 return x + y;
21 }
22
23 @end
24
25 // CHECK-LABEL: ObjCImplementationDecl {{.*}} Adder
26 // CHECK: ObjCMethodDecl {{.*}} - sum:with: 'float'
27 // CHECK: CompoundStmt {{.*}} FPContractMode=1 MathErrno=1
28 // CHECK-NEXT: ReturnStmt
29 // CHECK-NEXT: BinaryOperator {{.*}} 'float' '+' FPContractMode=1 MathErrno=1