summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/nomathbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/nomathbuiltin.c')
-rw-r--r--test/CodeGen/nomathbuiltin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/nomathbuiltin.c b/test/CodeGen/nomathbuiltin.c
new file mode 100644
index 0000000..f80cd91
--- /dev/null
+++ b/test/CodeGen/nomathbuiltin.c
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fno-math-builtin -emit-llvm -o - %s | FileCheck %s
+
+// Check that the -fno-math-builtin option for -cc1 is working properly.
+
+
+double pow(double, double);
+
+double foo(double a, double b) {
+ return pow(a, b);
+// CHECK: call double @pow
+}
+
OpenPOWER on IntegriCloud