From bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 22 Dec 2013 00:07:40 +0000 Subject: Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841 --- test/CodeGen/nomathbuiltin.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CodeGen/nomathbuiltin.c (limited to 'test/CodeGen/nomathbuiltin.c') diff --git a/test/CodeGen/nomathbuiltin.c b/test/CodeGen/nomathbuiltin.c new file mode 100644 index 000000000000..f80cd91de9d4 --- /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 +} + -- cgit v1.2.3