diff options
-rw-r--r-- | test/CFrontend/2005-07-20-SqrtNoErrno.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CFrontend/2005-07-20-SqrtNoErrno.c b/test/CFrontend/2005-07-20-SqrtNoErrno.c new file mode 100644 index 0000000000..fd976a6793 --- /dev/null +++ b/test/CFrontend/2005-07-20-SqrtNoErrno.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc %s -S -o - -fno-math-errno | gccas | llvm-dis | grep llvm.sqrt +#include <math.h> + +float foo(float X) { + // Check that this compiles to llvm.sqrt when errno is ignored. + return sqrtf(X); +} |