fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
int func1(void);
|
||||
int func2(void);
|
||||
int func3(void);
|
||||
int func4(void);
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func4(void) {
|
||||
return 4;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
project('extract all', 'c')
|
||||
|
||||
a = static_library('a', 'one.c', 'two.c')
|
||||
b = static_library('b', 'three.c', 'four.c')
|
||||
c = static_library('c', objects : [a.extract_all_objects(), b.extract_all_objects()])
|
||||
d = static_library('d', objects : [a.extract_all_objects(), b.extract_all_objects(), c.extract_all_objects()])
|
||||
d_recursive = static_library('d_recursive', objects : [c.extract_all_objects(recursive : true)])
|
||||
|
||||
e = executable('proggie', 'prog.c', link_with : d)
|
||||
test('extall', e)
|
||||
|
||||
e = executable('proggie_recursive', 'prog.c', link_with : d_recursive)
|
||||
test('extall_recursive', e)
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func1(void) {
|
||||
return 1;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#include"extractor.h"
|
||||
#include<stdio.h>
|
||||
|
||||
int main(void) {
|
||||
if((1+2+3+4) != (func1() + func2() + func3() + func4())) {
|
||||
printf("Arithmetic is fail.\n");
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func3(void) {
|
||||
return 3;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func2(void) {
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user