summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2005-07-20-SqrtNoErrno.c
blob: 3f85f7280196c36d7695ae895d23b1cdf7e63eda (plain)
1
2
3
4
5
6
7
// RUN: %llvmgcc %s -S -o - -fno-math-errno | grep llvm.sqrt
#include <math.h>

float foo(float X) {
  // Check that this compiles to llvm.sqrt when errno is ignored.
  return sqrtf(X);
}
OpenPOWER on IntegriCloud