summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/canon-33194.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/canon-33194.C')
-rw-r--r--gcc/testsuite/g++.dg/other/canon-33194.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/canon-33194.C b/gcc/testsuite/g++.dg/other/canon-33194.C
new file mode 100644
index 000000000..496aafe2c
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/canon-33194.C
@@ -0,0 +1,21 @@
+// PR c++/33194
+void c_translate_location (
+ void (*fail) (
+ const char *fmt, ...)
+ __attribute__ ((noreturn,
+ format (printf, 1, 2)))
+ );
+
+
+struct dwflpp
+{
+ static void loc2c_error (const char *fmt, ...)
+ {
+ }
+
+ void
+ translate_location()
+ {
+ return c_translate_location (&loc2c_error);
+ }
+};