aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/FrontendC/2008-07-08-FAbsAttributes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FrontendC/2008-07-08-FAbsAttributes.c b/test/FrontendC/2008-07-08-FAbsAttributes.c
new file mode 100644
index 0000000000..1eb01dcedb
--- /dev/null
+++ b/test/FrontendC/2008-07-08-FAbsAttributes.c
@@ -0,0 +1,4 @@
+// RUN: %llvmgcc -S %s -o - | grep readnone
+// PR2520
+#include <math.h>
+double f(double *x, double *y) { return fabs(*x + *y); }