aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr54625-1_1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto/pr54625-1_1.C')
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr54625-1_1.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr54625-1_1.C b/gcc/testsuite/gcc.dg/lto/pr54625-1_1.C
new file mode 100644
index 000000000..2d0d5bfba
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr54625-1_1.C
@@ -0,0 +1,19 @@
+extern "C" double sin (double);
+typedef double UnaryFunType (double);
+class A
+{
+public:
+ int hash ();
+ double lookup (UnaryFunType p1)
+ {
+ int a = hash ();
+ if (p1)
+ return 0;
+ }
+};
+A b;
+void
+math_sin_impl ()
+{
+ b.lookup (sin);
+}