Use two inputs for a generator to test edge cases.

pull/313/head
Jussi Pakkanen 9 years ago
parent 24f35d0425
commit c04e04146e
  1. 2
      test cases/common/59 object generator/meson.build
  2. 5
      test cases/common/59 object generator/prog.c
  3. 2
      test cases/common/59 object generator/source.c
  4. 3
      test cases/common/59 object generator/source2.c

@ -18,7 +18,7 @@ gen = generator(python,
output : outputname,
arguments : [comp, cc, '@INPUT@', '@OUTPUT@'])
generated = gen.process('source.c')
generated = gen.process(['source.c', 'source2.c'])
e = executable('prog', 'prog.c', generated)

@ -1,5 +1,6 @@
int func_in_obj();
int func1_in_obj();
int func2_in_obj();
int main(int argc, char **argv) {
return func_in_obj();
return func1_in_obj() + func2_in_obj();
}

@ -1,3 +1,3 @@
int func_in_obj() {
int func1_in_obj() {
return 0;
}

@ -0,0 +1,3 @@
int func2_in_obj() {
return 0;
}
Loading…
Cancel
Save