summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error22.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error22.C')
-rw-r--r--gcc/testsuite/g++.dg/other/error22.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error22.C b/gcc/testsuite/g++.dg/other/error22.C
new file mode 100644
index 000000000..225dcae82
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error22.C
@@ -0,0 +1,9 @@
+// PR c++/34394
+// { dg-do compile }
+
+extern "C" double fabs (double);
+
+void foo (double x)
+{
+ fabs (x) (); // { dg-error "__builtin_abs" }
+}