summaryrefslogtreecommitdiff
path: root/src/voidc.cc
blob: 5bbd7f4ebda7dc2ac9329618c0dfdd02e7487d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <cstdlib>
#include <cstring>

#include "source.cc"
#include "common.cc"
#include "memory.cc"

static const char* SOURCE = R"(
#include <stdlib.h>

int main() {
  return EXIT_FAILURE;
}

)";

static const char* SOURCE_FILE = "source.c";

int main() {
  String source(SOURCE);
  String file(SOURCE_FILE);
  
  Buffer buffer{};
  bool ret = buffer_init(&buffer, heap_allocator(), &source, &file);
  if(!ret) return EXIT_FAILURE;

  
}