xref: /llvm-project/clang/test/CodeGen/nsan-basic.c (revision 3402a1a4d2d4c7ead69156c3d741fc9ae9c4d399)
1*3402a1a4SAlexander Shaposhnikov // RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - -fsanitize=numerical %s | FileCheck %s
2*3402a1a4SAlexander Shaposhnikov 
3*3402a1a4SAlexander Shaposhnikov // CHECK: Function Attrs: noinline nounwind optnone sanitize_numerical_stability
add(float x,float y)4*3402a1a4SAlexander Shaposhnikov float add(float x, float y) {
5*3402a1a4SAlexander Shaposhnikov   float z = x + y;
6*3402a1a4SAlexander Shaposhnikov   return z;
7*3402a1a4SAlexander Shaposhnikov }
8