aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-19a.c
blob: 6213f79144d632f27f79aa7f1d0ced99351b6151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdlib.h>
#include "lto-19.h"

static const int utf8_sb_map[4] = { 0x12, 0x34, 0x56, 0x78 };

struct re_dfa_t *
rpl_regcomp ()
{
  struct re_dfa_t *dfa = malloc (sizeof (struct re_dfa_t));
  dfa->sb_char = utf8_sb_map;
  return dfa;
}

void
rpl_regfree (struct re_dfa_t *dfa)
{
  puts (dfa->sb_char == utf8_sb_map ? "PASS" : "FAIL");
}