summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/canon-33194.C
blob: 496aafe2c1c780a26f6ca54bea2a17044f4e96fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
  }
};