aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/noexceptionsfpmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/noexceptionsfpmath.c')
-rw-r--r--test/CodeGen/noexceptionsfpmath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/noexceptionsfpmath.c b/test/CodeGen/noexceptionsfpmath.c
new file mode 100644
index 000000000000..a22e285bb72a
--- /dev/null
+++ b/test/CodeGen/noexceptionsfpmath.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -S -fno-trapping-math %s -emit-llvm -o - | FileCheck %s
+
+// CHECK-LABEL: main
+// CHECK: attributes #0 = {{.*}}"no-trapping-math"="true"{{.*}}
+
+int main() {
+ return 0;
+}